Bump github/codeql-action from 3.27.1 to 3.27.4
[glslang.git] / Test / hlsl.structbuffer.floatidx.comp
blob0ddf0c21c4c3c86fb975cafe1f171b64e78c4b68
1 struct sb_t
3     float4 color;
4     uint2  threadId;
5 };
7 RWTexture2D<float4> outtx;
8 ConsumeStructuredBuffer<sb_t> csb : register(u1);
9 RWStructuredBuffer<float4> rwsb;
11 [numthreads(1, 1, 1)]
12 void main(uint3 nThreadId : SV_DispatchThreadID)
14     sb_t data = csb.Consume();
15     float2 coord = float2(data.threadId.xy);
16     outtx[coord] = data.color;
18     rwsb[coord.x] = rwsb.Load(coord.y);