blob: 1d6fae6a79936a780e78ef78ac23d4389297f603 [file]
#version 310 es
struct Inner {
bool b;
ivec4 v;
mat3 m;
};
struct Outer {
Inner a[4];
};
shared Outer v;
Outer foo() {
barrier();
Outer v_1 = v;
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 >= 4u)) {
break;
}
v.a[v_2] = Inner(false, ivec4(0), mat3(vec3(0.0f), vec3(0.0f), vec3(0.0f)));
{
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);
}