RWTexture2D<uint4> arg_0 : register(u0, space1);

void textureStore_145061() {
  uint2 arg_1 = (1u).xx;
  uint4 arg_2 = (1u).xxxx;
  arg_0[arg_1] = arg_2;
}

void fragment_main() {
  textureStore_145061();
  return;
}

[numthreads(1, 1, 1)]
void compute_main() {
  textureStore_145061();
  return;
}
