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