fn insertBits_87826b() {
  var res : vec3<u32> = insertBits(vec3<u32>(1u), vec3<u32>(1u), 1u, 1u);
  prevent_dce = res;
}

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

@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
  insertBits_87826b();
  return vec4<f32>();
}

@fragment
fn fragment_main() {
  insertBits_87826b();
}

@compute @workgroup_size(1)
fn compute_main() {
  insertBits_87826b();
}
