Giovanni Mascellani (@giomasce) commented about tests/uav-rwbuffer.shader_test:
+[pixel shader] +struct s +{
- float3 a;
+};
+RWBuffer<float4> u : register(u2); +RWBuffer<float> u1; +RWBuffer<float2x2> u2; +RWBuffer<struct s> u3;
+float4 main() : sv_target1 +{
- u[0] = float4(11.1, 12.2, 13.3, 14.4);
- return 0;
+}
Mostly to validate the parser, could we read and write the `struct` field too?
And the same for structured buffers.