SPIRV-Cross/shaders-hlsl/comp/num-workgroups-with-builtins.comp

14 lines
171 B
Plaintext
Raw Normal View History

2018-02-05 09:27:42 +00:00
#version 310 es
layout(local_size_x = 1) in;
layout(std430, binding = 0) buffer SSBO
{
uvec3 outdata;
};
void main()
{
outdata = gl_NumWorkGroups + gl_WorkGroupID;
}