RWByteAddressBuffer prevent_dce : register(u0);

vector<float16_t, 4> quadSwapX_02834c() {
  vector<float16_t, 4> res = QuadReadAcrossX((float16_t(1.0h)).xxxx);
  return res;
}

void fragment_main() {
  prevent_dce.Store<vector<float16_t, 4> >(0u, quadSwapX_02834c());
  return;
}

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