On Wednesday, August 23, 2017 12:04:40 PM PDT Ilia Mirkin wrote: > You might consider also including whether the interpolation method was > forced or not. i.e. if you have > > flat varying vec4 gl_Color; > > then it doesn't matter whether shade model is flat or not, it'll be > interpolated as flat. (Same with the other qualifiers made available > in GL 3.0.) > > So you only have to do funny stuff if either COL0 / COL1 don't have > explicit interpolation qualifiers. > > That might be over-optimizing it though. Your call. Just something > that occurred to me. > > -ilia
Yeah, we definitely could do that. I think I'd have to go loop over the input variables, though, instead of checking a bitfield...which is a bit of a pain. Given that 'flat' was introduced with GLSL 1.30, which also deprecated gl_Color, I doubt it's too common of a case. --Ken
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev