
RWTexture2DArray<uint4> arg_0 : register(u0, space1);
void textureStore_158cf0() {
  uint2 arg_1 = (1u).xx;
  uint arg_2 = 1u;
  uint4 arg_3 = (1u).xxxx;
  RWTexture2DArray<uint4> v = arg_0;
  uint2 v_1 = arg_1;
  uint4 v_2 = arg_3;
  v[uint3(v_1, uint(arg_2))] = v_2;
}

void fragment_main() {
  textureStore_158cf0();
}

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

