blob: d878b2de5b4d01be0c7e3fe72e4e15997b901e2c [file] [log] [blame]
#version 310 es
uint local_invocation_index_1 = 0u;
shared int arg_0;
void atomicSub_77883a() {
int res = 0;
int x_11 = atomicAdd(arg_0, 1);
res = x_11;
return;
}
void compute_main_inner(uint local_invocation_index_2) {
atomicExchange(arg_0, 0);
barrier();
atomicSub_77883a();
return;
}
void compute_main_1() {
uint x_31 = local_invocation_index_1;
compute_main_inner(x_31);
return;
}
void compute_main(uint local_invocation_index_1_param) {
{
atomicExchange(arg_0, 0);
}
barrier();
local_invocation_index_1 = local_invocation_index_1_param;
compute_main_1();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main(gl_LocalInvocationIndex);
return;
}