blob: 10f7137998dec5022fc7593680fde706bae7ec18 [file]
#version 310 es
shared int v[4];
int foo(uint p_indices[1]) {
barrier();
int v_1 = v[p_indices[0u]];
barrier();
return v_1;
}
int bar() {
return foo(uint[1](0u));
}
void main_inner(uint tint_local_index) {
{
uint v_2 = 0u;
v_2 = tint_local_index;
while(true) {
uint v_3 = v_2;
if ((v_3 >= 4u)) {
break;
}
v[v_3] = 0;
{
v_2 = (v_3 + 1u);
}
}
}
barrier();
bar();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
main_inner(gl_LocalInvocationIndex);
}