#include <metal_stdlib>
using namespace metal;

struct tint_module_vars_struct {
  device float* prevent_dce;
};

float fwidthFine_f1742d() {
  float const v = dfdx(1.0f);
  float const v_1 = dfdy(1.0f);
  float const v_2 = abs(v);
  float res = (v_2 + abs(v_1));
  return res;
}

fragment void fragment_main(device float* prevent_dce [[buffer(0)]]) {
  tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.prevent_dce=prevent_dce};
  (*tint_module_vars.prevent_dce) = fwidthFine_f1742d();
}
