Lines Matching refs:DstCoeff
77 * Given a known blend equation in the form of srcCoeff * srcColor + dstCoeff * dstColor where
82 void GrGetCoeffBlendKnownComponents(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff,
155 template<GrBlendCoeff SrcCoeff, GrBlendCoeff DstCoeff>
157 GR_BLEND_COEFF_REFS_SRC(DstCoeff)> {};
163 template<GrBlendCoeff SrcCoeff, GrBlendCoeff DstCoeff>
165 kZero_GrBlendCoeff != DstCoeff> {};
182 template<GrBlendEquation BlendEquation, GrBlendCoeff SrcCoeff, GrBlendCoeff DstCoeff>
186 kOne_GrBlendCoeff != DstCoeff> {};
197 * D' = f * (S * srcCoeff + D * dstCoeff) + (1-f) * D
198 * = f * S * srcCoeff + D * (f * dstCoeff + (1 - f))
203 * (f*S) * srcCoeff' + D * dstCoeff' == f * S * srcCoeff + D * (f * dstCoeff + (1 - f))
205 * (Where srcCoeff' and dstCoeff' have any reference to S pre-multiplied by f.)
210 * dstCoeff' == f * dstCoeff + (1 - f)
211 * dstCoeff' == 1 - f * (1 - dstCoeff)
213 * By inspection we can see this will work as long as dstCoeff has a 1, and any other term in
214 * dstCoeff references S.
216 template<GrBlendEquation Equation, GrBlendCoeff SrcCoeff, GrBlendCoeff DstCoeff>
221 (kOne_GrBlendCoeff == DstCoeff ||
222 kISC_GrBlendCoeff == DstCoeff ||
223 kISA_GrBlendCoeff == DstCoeff))> {};