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

fn textureStore_fc916e() {
  textureStore(arg_0, vec2<u32>(1u), 1i, vec4<u32>(1u));
}

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

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

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