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

fn textureStore_55f9dc() {
  var arg_1 = vec2<u32>(1u);
  var arg_2 = 1u;
  var arg_3 = vec4<f32>(1.0f);
  textureStore(arg_0, arg_1, arg_2, arg_3);
}

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

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

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