flycast/core/deps/glslang/Test/hlsl.wavequery.comp

8 lines
151 B
Plaintext

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