David Gonzalez Martin be2de1d672 Render a texture
2024-11-10 08:48:46 -06:00

8 lines
158 B
Plaintext

RWStructuredBuffer<uint> data;
[numthreads(32, 16, 1)]
void CSMain()
{
data[WaveGetLaneIndex()] = (WaveIsFirstLane()) ? WaveGetLaneCount() : 0;
}