MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ enable_additive_blending()

void MayaFlux::Core::GraphicsPipelineConfig::enable_additive_blending ( )

Definition at line 93 of file VKGraphicsPipeline.cpp.

94{
95 if (color_blend_attachments.empty()) {
96 color_blend_attachments.emplace_back();
97 }
98
99 for (auto& attachment : color_blend_attachments) {
100 attachment.blend_enable = true;
101 attachment.src_color_blend_factor = vk::BlendFactor::eSrcAlpha;
102 attachment.dst_color_blend_factor = vk::BlendFactor::eOne;
103 attachment.color_blend_op = vk::BlendOp::eAdd;
104 attachment.src_alpha_blend_factor = vk::BlendFactor::eOne;
105 attachment.dst_alpha_blend_factor = vk::BlendFactor::eZero;
106 attachment.alpha_blend_op = vk::BlendOp::eAdd;
107 }
108}
std::vector< ColorBlendAttachment > color_blend_attachments

References color_blend_attachments.

Referenced by additive_blended().

+ Here is the caller graph for this function: