Skip to content
  • Faith Ekstrand's avatar
    nir: Add a new VARYING_SLOT_BARYCENTRIC · 21fcdb80
    Faith Ekstrand authored
    This magic varying is handled as a special case inside nir_lower_io()
    and never makes it to the back-end.  Instead of actually interpolating
    anything, it just returns the barycentric coordinates.  If needed, we
    expand vec2 barycentrics to vec3 by z = 1 - x - y.
    21fcdb80