C Specification
The VkPipelineColorBlendStateCreateInfo
structure is defined as:
// Provided by VK_VERSION_1_0
typedef struct VkPipelineColorBlendStateCreateInfo {
VkStructureType sType;
const void* pNext;
VkPipelineColorBlendStateCreateFlags flags;
VkBool32 logicOpEnable;
VkLogicOp logicOp;
uint32_t attachmentCount;
const VkPipelineColorBlendAttachmentState* pAttachments;
float blendConstants[4];
} VkPipelineColorBlendStateCreateInfo;
Members
-
sType
is a VkStructureType value identifying this structure. -
pNext
isNULL
or a pointer to a structure extending this structure. -
flags
is a bitmask of VkPipelineColorBlendStateCreateFlagBits specifying additional color blending information. -
logicOpEnable
controls whether to apply Logical Operations. -
logicOp
selects which logical operation to apply. -
attachmentCount
is the number of VkPipelineColorBlendAttachmentState elements inpAttachments
. It is ignored if the pipeline is created withVK_DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT
,VK_DYNAMIC_STATE_COLOR_BLEND_EQUATION_EXT
, andVK_DYNAMIC_STATE_COLOR_WRITE_MASK_EXT
dynamic states set, and eitherVK_DYNAMIC_STATE_COLOR_BLEND_ADVANCED_EXT
set or advancedBlendCoherentOperations is not enabled on the device. -
pAttachments
is a pointer to an array of VkPipelineColorBlendAttachmentState structures defining blend state for each color attachment. It is ignored if the pipeline is created withVK_DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT
,VK_DYNAMIC_STATE_COLOR_BLEND_EQUATION_EXT
, andVK_DYNAMIC_STATE_COLOR_WRITE_MASK_EXT
dynamic states set, and eitherVK_DYNAMIC_STATE_COLOR_BLEND_ADVANCED_EXT
set or advancedBlendCoherentOperations is not enabled on the device. -
blendConstants
is a pointer to an array of four values used as the R, G, B, and A components of the blend constant that are used in blending, depending on the blend factor.
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.