blob: 0b2b9388821f08251005ba1964f0c883178aaf68 [file] [log] [blame]
#version 310 es
shared uint wg[4];
void compute_main_inner(uint tint_local_index) {
{
uint v = 0u;
v = tint_local_index;
while(true) {
uint v_1 = v;
if ((v_1 >= 4u)) {
break;
}
atomicExchange(wg[v_1], 0u);
{
v = (v_1 + 1u);
}
continue;
}
}
barrier();
atomicExchange(wg[1], 1u);
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main_inner(gl_LocalInvocationIndex);
}