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

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

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

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

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