@@ -197,6 +197,8 @@ using BlendHuePipeline =
197197 RenderPipelineT<AdvancedBlendVertexShader, AdvancedBlendFragmentShader>;
198198using BlendLightenPipeline =
199199 RenderPipelineT<AdvancedBlendVertexShader, AdvancedBlendFragmentShader>;
200+ using BlendPlusPipeline =
201+ RenderPipelineT<AdvancedBlendVertexShader, AdvancedBlendFragmentShader>;
200202using BlendLuminosityPipeline =
201203 RenderPipelineT<AdvancedBlendVertexShader, AdvancedBlendFragmentShader>;
202204using BlendMultiplyPipeline =
@@ -237,6 +239,9 @@ using FramebufferBlendHuePipeline =
237239using FramebufferBlendLightenPipeline =
238240 RenderPipelineT<FramebufferBlendVertexShader,
239241 FramebufferBlendFragmentShader>;
242+ using FramebufferBlendPlusPipeline =
243+ RenderPipelineT<FramebufferBlendVertexShader,
244+ FramebufferBlendFragmentShader>;
240245using FramebufferBlendLuminosityPipeline =
241246 RenderPipelineT<FramebufferBlendVertexShader,
242247 FramebufferBlendFragmentShader>;
@@ -640,6 +645,11 @@ class ContentContext {
640645 return GetPipeline (blend_lighten_pipelines_, opts);
641646 }
642647
648+ std::shared_ptr<Pipeline<PipelineDescriptor>> GetBlendPlusPipeline (
649+ ContentContextOptions opts) const {
650+ return GetPipeline (blend_plus_pipelines_, opts);
651+ }
652+
643653 std::shared_ptr<Pipeline<PipelineDescriptor>> GetBlendLuminosityPipeline (
644654 ContentContextOptions opts) const {
645655 return GetPipeline (blend_luminosity_pipelines_, opts);
@@ -725,6 +735,12 @@ class ContentContext {
725735 return GetPipeline (framebuffer_blend_lighten_pipelines_, opts);
726736 }
727737
738+ std::shared_ptr<Pipeline<PipelineDescriptor>> GetFramebufferBlendPlusPipeline (
739+ ContentContextOptions opts) const {
740+ FML_DCHECK (GetDeviceCapabilities ().SupportsFramebufferFetch ());
741+ return GetPipeline (framebuffer_blend_plus_pipelines_, opts);
742+ }
743+
728744 std::shared_ptr<Pipeline<PipelineDescriptor>>
729745 GetFramebufferBlendLuminosityPipeline (ContentContextOptions opts) const {
730746 FML_DCHECK (GetDeviceCapabilities ().SupportsFramebufferFetch ());
@@ -993,6 +1009,7 @@ class ContentContext {
9931009 mutable Variants<BlendHardLightPipeline> blend_hardlight_pipelines_;
9941010 mutable Variants<BlendHuePipeline> blend_hue_pipelines_;
9951011 mutable Variants<BlendLightenPipeline> blend_lighten_pipelines_;
1012+ mutable Variants<BlendPlusPipeline> blend_plus_pipelines_;
9961013 mutable Variants<BlendLuminosityPipeline> blend_luminosity_pipelines_;
9971014 mutable Variants<BlendMultiplyPipeline> blend_multiply_pipelines_;
9981015 mutable Variants<BlendOverlayPipeline> blend_overlay_pipelines_;
@@ -1018,6 +1035,8 @@ class ContentContext {
10181035 framebuffer_blend_hue_pipelines_;
10191036 mutable Variants<FramebufferBlendLightenPipeline>
10201037 framebuffer_blend_lighten_pipelines_;
1038+ mutable Variants<FramebufferBlendPlusPipeline>
1039+ framebuffer_blend_plus_pipelines_;
10211040 mutable Variants<FramebufferBlendLuminosityPipeline>
10221041 framebuffer_blend_luminosity_pipelines_;
10231042 mutable Variants<FramebufferBlendMultiplyPipeline>
0 commit comments