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

void textureStore_3d6f01() {
  uint arg_1 = 1u;
  int4 arg_2 = (1).xxxx;
  arg_0[arg_1] = arg_2;
}

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

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