
RWByteAddressBuffer prevent_dce : register(u0);
uint2 quadSwapY_a27e1c() {
  uint2 res = QuadReadAcrossY((1u).xx);
  return res;
}

void fragment_main() {
  prevent_dce.Store2(0u, quadSwapY_a27e1c());
}

[numthreads(1, 1, 1)]
void compute_main() {
  prevent_dce.Store2(0u, quadSwapY_a27e1c());
}

