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

◆ enable_alpha_blending()

void MayaFlux::Core::GraphicsPipelineConfig::enable_alpha_blending ( )

Definition at line 76 of file VKGraphicsPipeline.cpp.

77{
78 if (color_blend_attachments.empty()) {
79 color_blend_attachments.emplace_back();
80 }
81
82 for (auto& attachment : color_blend_attachments) {
83 attachment.blend_enable = true;
84 attachment.src_color_blend_factor = vk::BlendFactor::eSrcAlpha;
85 attachment.dst_color_blend_factor = vk::BlendFactor::eOneMinusSrcAlpha;
86 attachment.color_blend_op = vk::BlendOp::eAdd;
87 attachment.src_alpha_blend_factor = vk::BlendFactor::eOne;
88 attachment.dst_alpha_blend_factor = vk::BlendFactor::eZero;
89 attachment.alpha_blend_op = vk::BlendOp::eAdd;
90 }
91}
std::vector< ColorBlendAttachment > color_blend_attachments

References color_blend_attachments.

Referenced by alpha_blended().

+ Here is the caller graph for this function: