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

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

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

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