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

void textureStore_3bb7a1() {
  int2 arg_1 = (1).xx;
  int arg_2 = 1;
  float4 arg_3 = (1.0f).xxxx;
  arg_0[int3(arg_1, arg_2)] = arg_3;
}

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

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