blob: 77f25f7d7003464a8f04311eaccaa3a8e46c7cd3 [file] [log] [blame]
var<private> local_invocation_index_1 : u32;
var<workgroup> arg_0 : atomic<u32>;
fn atomicSub_0d26c2() {
var arg_1 : u32 = 0u;
var res : u32 = 0u;
arg_1 = 1u;
let x_18 : u32 = arg_1;
let x_14 : u32 = atomicSub(&(arg_0), x_18);
res = x_14;
return;
}
fn compute_main_inner(local_invocation_index : u32) {
atomicStore(&(arg_0), 0u);
workgroupBarrier();
atomicSub_0d26c2();
return;
}
fn compute_main_1() {
let x_32 : u32 = local_invocation_index_1;
compute_main_inner(x_32);
return;
}
@compute @workgroup_size(1i, 1i, 1i)
fn compute_main(@builtin(local_invocation_index) local_invocation_index_1_param : u32) {
local_invocation_index_1 = local_invocation_index_1_param;
compute_main_1();
}