C Specification

If the pNext chain of VkPipelineColorBlendStateCreateInfo includes a VkPipelineColorBlendAdvancedStateCreateInfoEXT structure, then that structure includes parameters that affect advanced blend operations.

The VkPipelineColorBlendAdvancedStateCreateInfoEXT structure is defined as:

// Provided by VK_EXT_blend_operation_advanced
VkStructureType      sType;
const void*          pNext;
VkBool32             srcPremultiplied;
VkBool32             dstPremultiplied;
VkBlendOverlapEXT    blendOverlap;
} VkPipelineColorBlendAdvancedStateCreateInfoEXT;

Members

• sType is the type of this structure.

• pNext is NULL or a pointer to a structure extending this structure.

• srcPremultiplied specifies whether the source color of the blend operation is treated as premultiplied.

• dstPremultiplied specifies whether the destination color of the blend operation is treated as premultiplied.

• blendOverlap is a VkBlendOverlapEXT value specifying how the source and destination sample’s coverage is correlated.

Description

If this structure is not present, srcPremultiplied and dstPremultiplied are both considered to be VK_TRUE, and blendOverlap is considered to be VK_BLEND_OVERLAP_UNCORRELATED_EXT.

Valid Usage
If the non-premultiplied source color property is not supported, srcPremultiplied must be VK_TRUE

If the non-premultiplied destination color property is not supported, dstPremultiplied must be VK_TRUE

If the correlated overlap property is not supported, blendOverlap must be VK_BLEND_OVERLAP_UNCORRELATED_EXT

Valid Usage (Implicit)
sType must be VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_ADVANCED_STATE_CREATE_INFO_EXT

blendOverlap must be a valid VkBlendOverlapEXT value