SPIRV-Cross/reference/opt/shaders-hlsl/comp/num-workgroups-alone.comp
2019-09-24 18:13:04 -04:00

20 lines
347 B
Plaintext

static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u);
RWByteAddressBuffer _10 : register(u0);
cbuffer SPIRV_Cross_NumWorkgroups : register(b0)
{
uint3 SPIRV_Cross_NumWorkgroups_1_count : packoffset(c0);
};
void comp_main()
{
_10.Store3(0, SPIRV_Cross_NumWorkgroups_1_count);
}
[numthreads(1, 1, 1)]
void main()
{
comp_main();
}