#include <metal_stdlib>

using namespace metal;
float4 textureSample_6e64fb(texture1d<float, access::sample> tint_symbol, sampler tint_symbol_1) {
  float4 res = tint_symbol.sample(tint_symbol_1, 1.0f);
  return res;
}

fragment void fragment_main(device float4* tint_symbol_2 [[buffer(0)]], texture1d<float, access::sample> tint_symbol_3 [[texture(0)]], sampler tint_symbol_4 [[sampler(0)]]) {
  *(tint_symbol_2) = textureSample_6e64fb(tint_symbol_3, tint_symbol_4);
  return;
}

