Go to the source code of this file.
◆ can_use_hw_blend_equation()
Definition at line 64 of file GrCustomXfermode.cpp.
65 {
67 return false;
68 }
70 return false;
71 }
73 return false;
74 }
75 return true;
76}
bool advancedBlendEquationSupport() const
bool isAdvancedBlendEquationDisabled(skgpu::BlendEquation equation) const
◆ hw_blend_equation()
Definition at line 40 of file GrCustomXfermode.cpp.
40 {
56
57
59
61#undef EQ_OFFSET
62}
@ kExclusion
rc = s + d - two(s*d), ra = kSrcOver
@ kSaturation
saturation of source with hue and luminosity of destination
@ kColorBurn
darken destination to reflect source
@ kLighten
rc = s + d - min(s*da, d*sa), ra = kSrcOver
@ kHue
hue of source with saturation and luminosity of destination
@ kMultiply
r = s*(1-da) + d*(1-sa) + s*d
@ kColorDodge
brighten destination to reflect source
@ kLuminosity
luminosity of source with hue and saturation of destination
@ kSoftLight
lighten or darken, depending on source
@ kDifference
rc = s + d - 2*(min(s*da, d*sa)), ra = kSrcOver
@ kOverlay
multiply or screen, depending on destination
@ kLastMode
last valid value
@ kColor
hue and saturation of source with luminosity of destination
@ kHardLight
multiply or screen, depending on source
@ kDarken
rc = s + d - max(s*da, d*sa), ra = kSrcOver
Type::kYUV Type::kRGBA() int(0.7 *637)
static const int kBlendEquationCnt