SPIRV-Cross/reference/shaders-hlsl/asm/comp/specialization-constant-workgroup.asm.comp
2017-09-29 11:07:11 +02:00

17 lines
263 B
Plaintext

const uint _5 = 9u;
const uint _6 = 4u;
const uint3 gl_WorkGroupSize = uint3(_5, 20u, _6);
RWByteAddressBuffer _4 : register(u0);
void comp_main()
{
_4.Store(0, asuint(asfloat(_4.Load(0)) + 1.0f));
}
[numthreads(9, 20, 4)]
void main()
{
comp_main();
}