#include <metal_stdlib>

using namespace metal;
void textureStore_1f1ef8(texture2d_array<int, access::write> tint_symbol) {
  tint_symbol.write(int4(1), uint2(int2(1)), 1u);
}

fragment void fragment_main(texture2d_array<int, access::write> tint_symbol_1 [[texture(0)]]) {
  textureStore_1f1ef8(tint_symbol_1);
  return;
}

kernel void compute_main(texture2d_array<int, access::write> tint_symbol_2 [[texture(0)]]) {
  textureStore_1f1ef8(tint_symbol_2);
  return;
}

