C Specification
The VkPipelineColorWriteCreateInfoEXT structure is defined as:
// Provided by VK_EXT_color_write_enable
typedef struct VkPipelineColorWriteCreateInfoEXT {
VkStructureType sType;
const void* pNext;
uint32_t attachmentCount;
const VkBool32* pColorWriteEnables;
} VkPipelineColorWriteCreateInfoEXT;
Members
-
sTypeis the type of this structure. -
pNextisNULLor a pointer to a structure extending this structure. -
attachmentCountis the number ofVkBool32elements inpColorWriteEnables. -
pColorWriteEnablesis a pointer to an array of per target attachment boolean values specifying whether color writes are enabled for the given attachment.
Description
When this structure is included in the pNext chain of
VkPipelineColorBlendStateCreateInfo, it defines per-attachment color
write state.
If this structure is not included in the pNext chain, it is equivalent
to specifying this structure with attachmentCount equal to the
attachmentCount member of VkPipelineColorBlendStateCreateInfo,
and pColorWriteEnables set to an array of as many VK_TRUE
values.
If the colorWriteEnable feature is not enabled
on the device, all VkBool32 elements in the
pColorWriteEnables array must be VK_TRUE.
Color Write Enable interacts with the Color
Write Mask as follows:
* If colorWriteEnable is VK_TRUE, writes to the attachment are
determined by the colorWriteMask.
* If colorWriteEnable is VK_FALSE, the colorWriteMask is
ignored and writes to all components of the attachment are disabled.
This is equivalent to specifying a colorWriteMask of 0.
See Also
VkBool32, VkStructureType
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.