bgfx/3rdparty/glslang/Test/hlsl.wavequery.comp
Branimir Karadžić ba4a90b9bd Updated glslang.
2018-03-10 15:03:31 -08:00

8 lines
158 B
Plaintext

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