#include <metal_stdlib>

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

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

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

