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