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

void textureStore_dde364() {
  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_dde364();
  return;
}

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