#include <metal_stdlib>

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

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

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

