7 RWTexture2D<float4> outtx;
8 ConsumeStructuredBuffer<sb_t> csb : register(u1);
9 RWStructuredBuffer<float4> rwsb;
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);