RWByteAddressBuffer prevent_dce : register(u0);

float3 subgroupExclusiveAdd_41cfde() {
  float3 arg_0 = (1.0f).xxx;
  float3 res = WavePrefixSum(arg_0);
  return res;
}

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

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