
RWByteAddressBuffer prevent_dce : register(u0);
float16_t quadSwapDiagonal_2be5e7() {
  float16_t res = QuadReadAcrossDiagonal(float16_t(1.0h));
  return res;
}

void fragment_main() {
  prevent_dce.Store<float16_t>(0u, quadSwapDiagonal_2be5e7());
}

[numthreads(1, 1, 1)]
void compute_main() {
  prevent_dce.Store<float16_t>(0u, quadSwapDiagonal_2be5e7());
}

