blob: 22ee2d57b24e5b4e9ebc682ea7ca5443f2a5096e [file] [log] [blame]
struct S0 {
int x;
uint a;
int y;
int z;
};
struct S1 {
int x;
S0 a;
int y;
int z;
};
struct S2 {
int x;
int y;
int z;
S1 a;
};
struct compute_main_inputs {
uint tint_local_index : SV_GroupIndex;
};
groupshared S2 wg;
void compute_main_inner(uint tint_local_index) {
if ((tint_local_index == 0u)) {
wg.x = int(0);
wg.y = int(0);
wg.z = int(0);
wg.a.x = int(0);
wg.a.a.x = int(0);
uint v = 0u;
InterlockedExchange(wg.a.a.a, 0u, v);
wg.a.a.y = int(0);
wg.a.a.z = int(0);
wg.a.y = int(0);
wg.a.z = int(0);
}
GroupMemoryBarrierWithGroupSync();
uint v_1 = 0u;
InterlockedExchange(wg.a.a.a, 1u, v_1);
}
[numthreads(1, 1, 1)]
void compute_main(compute_main_inputs inputs) {
compute_main_inner(inputs.tint_local_index);
}