blob: 40abf0bd427b636e8fec056482543f0d1b42c95c [file] [log] [blame]
RWByteAddressBuffer prevent_dce : register(u0);
RWByteAddressBuffer sb_rw : register(u1);
int atomicXor_c1b78c() {
int v = 0;
sb_rw.InterlockedXor(int(0u), 1, v);
int res = v;
return res;
}
void fragment_main() {
prevent_dce.Store(0u, asuint(atomicXor_c1b78c()));
}
[numthreads(1, 1, 1)]
void compute_main() {
prevent_dce.Store(0u, asuint(atomicXor_c1b78c()));
}