1#ifndef VULKAN_ATTACHMENTCOLORBLENDINGMODE
2#define VULKAN_ATTACHMENTCOLORBLENDINGMODE
4#include <vulkan/vulkan.h>
24 switch (predefinedMode) {
26 colorBlendingMode.colorWriteMask = VK_COLOR_COMPONENT_R_BIT | VK_COLOR_COMPONENT_G_BIT | VK_COLOR_COMPONENT_B_BIT | VK_COLOR_COMPONENT_A_BIT;
27 colorBlendingMode.blendEnable = VK_FALSE;
28 colorBlendingMode.srcColorBlendFactor = VK_BLEND_FACTOR_ONE;
29 colorBlendingMode.dstColorBlendFactor = VK_BLEND_FACTOR_ZERO;
30 colorBlendingMode.colorBlendOp = VK_BLEND_OP_ADD;
31 colorBlendingMode.srcAlphaBlendFactor = VK_BLEND_FACTOR_ONE;
32 colorBlendingMode.dstAlphaBlendFactor = VK_BLEND_FACTOR_ZERO;
33 colorBlendingMode.alphaBlendOp = VK_BLEND_OP_ADD;
36 colorBlendingMode.colorWriteMask = VK_COLOR_COMPONENT_FLAG_BITS_MAX_ENUM;
37 colorBlendingMode.blendEnable = VK_FALSE;
38 colorBlendingMode.srcColorBlendFactor = VK_BLEND_FACTOR_MAX_ENUM;
39 colorBlendingMode.dstColorBlendFactor = VK_BLEND_FACTOR_MAX_ENUM;
40 colorBlendingMode.colorBlendOp = VK_BLEND_OP_MAX_ENUM;
41 colorBlendingMode.srcAlphaBlendFactor = VK_BLEND_FACTOR_MAX_ENUM;
42 colorBlendingMode.dstAlphaBlendFactor = VK_BLEND_FACTOR_MAX_ENUM;
43 colorBlendingMode.alphaBlendOp = VK_BLEND_OP_MAX_ENUM;
51 const VkPipelineColorBlendAttachmentState&
operator+()
const {
52 return colorBlendingMode;
56 VkPipelineColorBlendAttachmentState colorBlendingMode;
A AttachmentColorBlendingMode describes how a render Subpass will write to a color attachment.
Definition: AttachmentColorBlendingMode.h:20
const VkPipelineColorBlendAttachmentState & operator+() const
Definition: AttachmentColorBlendingMode.h:51
AttachmentColorBlendingMode(VkPipelineColorBlendAttachmentState baseColorBlendingMode)
Definition: AttachmentColorBlendingMode.h:48
AttachmentColorBlendingMode(PredefinedColorBlendingModes predefinedMode=PredefinedColorBlendingModes::INVALID)
Definition: AttachmentColorBlendingMode.h:23
Definition: Attachment.h:11
PredefinedColorBlendingModes
Definition: AttachmentColorBlendingMode.h:10