bgfx/3rdparty/glslang/Test/hlsl.wavequery.comp

8 lines
158 B
Plaintext
Raw Normal View History

2018-03-11 02:03:31 +03:00
RWStructuredBuffer<uint> data;
[numthreads(32, 16, 1)]
void CSMain()
{
data[WaveGetLaneIndex()] = (WaveIsFirstLane()) ? WaveGetLaneCount() : 0;
}