cmdSetColorWriteEnableEXT :: MonadIO io=> CommandBuffercommandBufferis the command buffer into which the command will be recorded.->"colorWriteEnables"
::: Vector BoolpColorWriteEnablesis a pointer to an array of per target attachment boolean values specifying whether color writes are enabled for the given attachment.-> io ()
vkCmdSetColorWriteEnableEXT - Enable or disable writes to a color attachment dynamically for a command buffer
Description
This command sets the color write enables for subsequent drawing
commands when drawing using
shader objects,
or when the graphics pipeline is created with
DYNAMIC_STATE_COLOR_WRITE_ENABLE_EXT
set in
PipelineDynamicStateCreateInfo::pDynamicStates.
Otherwise, this state is specified by the
PipelineColorWriteCreateInfoEXT::pColorWriteEnables values used to
create the currently active pipeline.
Valid Usage
The colorWriteEnable feature must be enabled
attachmentCountmust be less than or equal to themaxColorAttachmentsmember of PhysicalDeviceLimits
Valid Usage (Implicit)
commandBuffermust be a valid CommandBuffer handle
pColorWriteEnablesmust be a valid pointer to an array ofattachmentCountBool32 valuescommandBuffermust be in the recording stateThe CommandPool that
commandBufferwas allocated from must support QUEUE_GRAPHICS_BIT operationsThis command must only be called outside of a video coding scope
attachmentCountmust be greater than0
Host Synchronization
Host access to
commandBuffermust be externally synchronized
Host access to the CommandPool that
commandBufferwas allocated from must be externally synchronized
Command Properties
'
Primary Secondary | Both | Outside | VK_QUEUE_GRAPHICS_BIT | State |
Conditional Rendering
vkCmdSetColorWriteEnableEXT is not affected by conditional rendering