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

void textureStore_83bcc1() {
  int arg_1 = 1;
  uint4 arg_2 = (1u).xxxx;
  arg_0[arg_1] = arg_2;
}

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

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