vkCmdSetColorBlendEquationEXT
To dynamically set color blend factors and operations, call:
void vkCmdSetColorBlendEquationEXT(
VkCommandBuffer commandBuffer,
uint32_t firstAttachment,
uint32_t attachmentCount,
const VkColorBlendEquationEXT* pColorBlendEquations);
commandBufferis the command buffer into which the command will be recorded.firstAttachmentthe first color attachment the color blend factors and operations apply to.attachmentCountthe number of VkColorBlendEquationEXT elements in thepColorBlendEquationsarray.pColorBlendEquationsan array of VkColorBlendEquationEXT structs that specify the color blend factors and operations for the corresponding attachments.
This command sets the color blending factors and operations of the specified
attachments for subsequent drawing commands
when drawing using shader objects, or
when the graphics pipeline is created with
VK_DYNAMIC_STATE_COLOR_BLEND_EQUATION_EXT set in
VkPipelineDynamicStateCreateInfo::pDynamicStates.
Otherwise, this state is specified by the
VkPipelineColorBlendAttachmentState::srcColorBlendFactor,
VkPipelineColorBlendAttachmentState::dstColorBlendFactor,
VkPipelineColorBlendAttachmentState::colorBlendOp,
VkPipelineColorBlendAttachmentState::srcAlphaBlendFactor,
VkPipelineColorBlendAttachmentState::dstAlphaBlendFactor, and
VkPipelineColorBlendAttachmentState::alphaBlendOp values used to
create the currently active pipeline.
Valid Usage
VUID-vkCmdSetColorBlendEquationEXT-None-09423
At least one of the following must be true:
- The
extendedDynamicState3ColorBlendEquationfeature is enabled - The
shaderObjectfeature is enabled ::
Valid Usage (Implicit)
VUID-vkCmdSetColorBlendEquationEXT-commandBuffer-parameter
commandBuffer must be a valid VkCommandBuffer handle
VUID-vkCmdSetColorBlendEquationEXT-pColorBlendEquations-parameter
pColorBlendEquations must be a valid pointer to an array of attachmentCount valid VkColorBlendEquationEXT structures
VUID-vkCmdSetColorBlendEquationEXT-commandBuffer-recording
commandBuffer must be in the recording state
VUID-vkCmdSetColorBlendEquationEXT-commandBuffer-cmdpool
The VkCommandPool that commandBuffer was allocated from must support graphics operations
VUID-vkCmdSetColorBlendEquationEXT-videocoding
This command must only be called outside of a video coding scope
VUID-vkCmdSetColorBlendEquationEXT-attachmentCount-arraylength
attachmentCount must be greater than 0
::
Host Synchronization
- Host access to
commandBuffermust be externally synchronized - Host access to the
VkCommandPoolthatcommandBufferwas allocated from must be externally synchronized ::