SPIRV-Cross/shaders-hlsl/comp/num-workgroups-with-builtins.comp
2018-02-05 10:29:20 +01:00

14 lines
171 B
Plaintext

#version 310 es
layout(local_size_x = 1) in;
layout(std430, binding = 0) buffer SSBO
{
uvec3 outdata;
};
void main()
{
outdata = gl_NumWorkGroups + gl_WorkGroupID;
}