
RWByteAddressBuffer prevent_dce : register(u0);
vector<float16_t, 3> quadSwapX_bc2013() {
  vector<float16_t, 3> res = QuadReadAcrossX((float16_t(1.0h)).xxx);
  return res;
}

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

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

