#include <metal_stdlib>

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

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

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

