#include <metal_stdlib>

using namespace metal;
float2 tint_fwidth_fine(float2 v) {
  return (fabs(dfdx(v)) + fabs(dfdy(v)));
}

float2 fwidthFine_ff6aa0() {
  float2 arg_0 = float2(1.0f);
  float2 res = tint_fwidth_fine(arg_0);
  return res;
}

fragment void fragment_main(device float2* tint_symbol [[buffer(0)]]) {
  *(tint_symbol) = fwidthFine_ff6aa0();
  return;
}

