blob: 30e3f53c98cf16fcad04fb33ab76bf6d9683c025 [file] [log] [blame]
struct compute_main_inputs {
uint tint_local_index : SV_GroupIndex;
};
RWByteAddressBuffer prevent_dce : register(u0);
groupshared int arg_0;
int atomicSub_77883a() {
int v = 0;
InterlockedAdd(arg_0, -(1), v);
int res = v;
return res;
}
void compute_main_inner(uint tint_local_index) {
if ((tint_local_index == 0u)) {
int v_1 = 0;
InterlockedExchange(arg_0, 0, v_1);
}
GroupMemoryBarrierWithGroupSync();
prevent_dce.Store(0u, asuint(atomicSub_77883a()));
}
[numthreads(1, 1, 1)]
void compute_main(compute_main_inputs inputs) {
compute_main_inner(inputs.tint_local_index);
}