Function Prototype

vkCmdSetLogicOpEnableEXT

Specify dynamically whether logical operations are enabled for a command buffer
primary / secondary
both
graphics
state

To dynamically set whether logical operations are enabled, call:

void vkCmdSetLogicOpEnableEXT(
    VkCommandBuffer commandBuffer,
    VkBool32 logicOpEnable);
  • commandBuffer is the command buffer into which the command will be recorded.
  • logicOpEnable specifies 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 extendedDynamicState3LogicOpEnable feature is enabled

VUID-vkCmdSetLogicOpEnableEXT-logicOp-07366

If the logicOp feature is not enabled, logicOpEnable must be VK_FALSE

::

Valid Usage (Implicit)

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 commandBuffer must be externally synchronized
  • Host access to the VkCommandPool that commandBuffer was allocated from must be externally synchronized ::