blob: 0489c10380e5da290f1fdd07a3d550d5b6a283d7 [file] [log] [blame]
struct compute_main_inputs {
uint tint_local_index : SV_GroupIndex;
};
groupshared uint wg[3][2][1];
void compute_main_inner(uint tint_local_index) {
{
uint v = 0u;
v = tint_local_index;
while(true) {
uint v_1 = v;
if ((v_1 >= 6u)) {
break;
}
uint v_2 = 0u;
InterlockedExchange(wg[(v_1 / 2u)][(v_1 % 2u)][0u], 0u, v_2);
{
v = (v_1 + 1u);
}
continue;
}
}
GroupMemoryBarrierWithGroupSync();
uint v_3 = 0u;
InterlockedExchange(wg[int(2)][int(1)][int(0)], 1u, v_3);
}
[numthreads(1, 1, 1)]
void compute_main(compute_main_inputs inputs) {
compute_main_inner(inputs.tint_local_index);
}