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

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

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

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