RWByteAddressBuffer prevent_dce : register(u0);

uint3 subgroupMax_23f502() {
  uint3 arg_0 = (1u).xxx;
  uint3 res = WaveActiveMax(arg_0);
  return res;
}

void fragment_main() {
  prevent_dce.Store3(0u, asuint(subgroupMax_23f502()));
  return;
}

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