RWByteAddressBuffer prevent_dce : register(u0);

uint subgroupInclusiveAdd_7ed675() {
  uint arg_0 = 1u;
  uint res = (WavePrefixSum(arg_0) + arg_0);
  return res;
}

void fragment_main() {
  prevent_dce.Store(0u, asuint(subgroupInclusiveAdd_7ed675()));
  return;
}

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