Files
Lucina3DS/externals/glslang/Test/hlsl.wavequery.comp
2025-02-06 22:24:29 +08:00

8 lines
158 B
Plaintext

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