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

void textureStore_8e0479() {
  int2 arg_1 = (1).xx;
  int arg_2 = 1;
  uint4 arg_3 = (1u).xxxx;
  arg_0[int3(arg_1, arg_2)] = arg_3;
}

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

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