
RWByteAddressBuffer prevent_dce : register(u0);
uint3 subgroupShuffle_4f5711() {
  uint3 res = WaveReadLaneAt((1u).xxx, 1u);
  return res;
}

void fragment_main() {
  prevent_dce.Store3(0u, subgroupShuffle_4f5711());
}

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

