enable subgroups;

@group(0) @binding(0) var<storage, read_write> prevent_dce : vec2<u32>;

fn subgroupOr_aa74f7() -> vec2<u32> {
  var arg_0 = vec2<u32>(1u);
  var res : vec2<u32> = subgroupOr(arg_0);
  return res;
}

@fragment
fn fragment_main() {
  prevent_dce = subgroupOr_aa74f7();
}

@compute @workgroup_size(1)
fn compute_main() {
  prevent_dce = subgroupOr_aa74f7();
}
