Giovanni Mascellani (@giomasce) commented about tests/hlsl/sm6-uav-rwtexture.shader_test:
+[require] +shader model >= 6.0
+[pixel shader] +RWTexture2D<float4> u;
+float4 main() : sv_target +{
- /* Unlike SM < 6.0, all four components are not required to be written in a single statement. */
- u[uint2(0, 0)].xy = float2(1, 2);
- u[uint2(0, 0)].zw = float2(3, 4);
Could you actually run this, to check that it behaves as expected? In principle it might be, for instance, that components that are not written are given zero or undefined values.