5 GL_ARB_shader_atomic_counters
6 GL_ARB_shader_group_vote
10 #extension GL_ARB_compute_shader: require
11 #extension GL_ARB_shader_atomic_counters: require
12 #extension GL_ARB_shader_group_vote: require
14 layout(binding = 0) uniform atomic_uint inc;
16 layout(local_size_x = 8) in;
20 if (allInvocationsEqualARB(bool(gl_WorkGroupID.x)))
21 atomicCounterIncrement(inc);
27 probe atomic counter 0 == 16