#include <metal_stdlib>

using namespace metal;
void textureStore_de4b94(texture1d<int, access::write> tint_symbol) {
  tint_symbol.write(int4(1), uint(1u));
}

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

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

