yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
69cb6e8f3
master
1//TEST:REFLECTION:-profile ps_4_0 -target hlsl -no-codegen 2 3// Confirm that we reflect the contents of structure-buffer types correctly. 4 5struct S 6{ 7 float2 a; 8 float b; 9 uint c; 10}; 11 12StructuredBuffer<uint> x; 13StructuredBuffer<float2> y; 14StructuredBuffer<S> z; 15 16float4 main() : SV_Target 17{ 18 return x[0] + y[0].xyxy + z[0].a.xyxy; 19}