enable chromium_experimental_read_write_storage_texture;

@group(1) @binding(0) var arg_0 : texture_storage_2d_array<rgba32sint, read_write>;

fn textureLoad_2cee30() {
  var res : vec4<i32> = textureLoad(arg_0, vec2<u32>(1u), 1i);
  prevent_dce = res;
}

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

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

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

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