vkCmdSetLogicOpEnableEXT
To dynamically set whether logical operations are enabled, call:
void vkCmdSetLogicOpEnableEXT(
VkCommandBuffer commandBuffer,
VkBool32 logicOpEnable);
commandBufferis the command buffer into which the command will be recorded.logicOpEnablespecifies whether logical operations are enabled.
This command sets whether logical operations are enabled for subsequent
drawing commands
when drawing using shader objects, or
when the graphics pipeline is created with
VK_DYNAMIC_STATE_LOGIC_OP_ENABLE_EXT set in
VkPipelineDynamicStateCreateInfo::pDynamicStates.
Otherwise, this state is specified by the
VkPipelineColorBlendStateCreateInfo::logicOpEnable value used to
create the currently active pipeline.
Valid Usage
VUID-vkCmdSetLogicOpEnableEXT-None-09423
At least one of the following must be true:
- The
extendedDynamicState3LogicOpEnablefeature is enabled - The
shaderObjectfeature is enabled ::
VUID-vkCmdSetLogicOpEnableEXT-logicOp-07366
If the logicOp feature is not enabled,
logicOpEnable must be VK_FALSE
::
Valid Usage (Implicit)
VUID-vkCmdSetLogicOpEnableEXT-commandBuffer-parameter
commandBuffer must be a valid VkCommandBuffer handle
VUID-vkCmdSetLogicOpEnableEXT-commandBuffer-recording
commandBuffer must be in the recording state
VUID-vkCmdSetLogicOpEnableEXT-commandBuffer-cmdpool
The VkCommandPool that commandBuffer was allocated from must support graphics operations
VUID-vkCmdSetLogicOpEnableEXT-videocoding
This command must only be called outside of a video coding scope
Host Synchronization
- Host access to
commandBuffermust be externally synchronized - Host access to the
VkCommandPoolthatcommandBufferwas allocated from must be externally synchronized ::