15 #include <vsg/state/GraphicsPipeline.h>
24 using ColorBlendAttachments = std::vector<VkPipelineColorBlendAttachmentState>;
28 explicit ColorBlendState(
const ColorBlendAttachments& colorBlendAttachments);
31 VkBool32 logicOpEnable = VK_FALSE;
32 VkLogicOp logicOp = VK_LOGIC_OP_COPY;
33 ColorBlendAttachments attachments;
34 float blendConstants[4] = {0.0f, 0.0f, 0.0f, 0.0f};
41 void read(
Input& input)
override;
42 void write(
Output& output)
const override;
44 void apply(
Context& context, VkGraphicsPipelineCreateInfo& pipelineInfo)
const override;
ColorBlendState encapsulates VkPipelineColorBlendStateCreateInfo settings passed when setting up Grap...
Definition: ColorBlendState.h:22
int compare(const Object &rhs) const override
compare two objects, return -1 if this object is less than rhs, return 0 if it's equal,...
virtual void configureAttachments(bool blendEnable)
configure the assigned attachments, if blendEnable is true then set up standard src_alpha,...