blob: c26f392e4798f0e579d54227a74af4b231814dd6 [file] [log] [blame]
struct main_inputs {
uint tint_local_index : SV_GroupIndex;
};
groupshared int S;
int func() {
return S;
}
void main_inner(uint tint_local_index) {
if ((tint_local_index == 0u)) {
S = int(0);
}
GroupMemoryBarrierWithGroupSync();
int r = func();
}
[numthreads(1, 1, 1)]
void main(main_inputs inputs) {
main_inner(inputs.tint_local_index);
}