1 2 3 4 5 6
RWBuffer<float> output_buf : register(u0); [numthreads(64, 1, 1)] void main(uint3 tid : SV_DispatchThreadID) { output_buf[tid.x] = float(tid.x); }