## C Specification

The VkPipelineMultisampleStateCreateInfo structure is defined as:

typedef struct VkPipelineMultisampleStateCreateInfo {
VkStructureType                          sType;
const void*                              pNext;
VkPipelineMultisampleStateCreateFlags    flags;
VkSampleCountFlagBits                    rasterizationSamples;
VkBool32                                 alphaToCoverageEnable;
VkBool32                                 alphaToOneEnable;
} VkPipelineMultisampleStateCreateInfo;

## Members

• sType is the type of this structure.

• pNext is NULL or a pointer to an extension-specific structure.

• flags is reserved for future use.

• rasterizationSamples is a VkSampleCountFlagBits specifying the number of samples used in rasterization.

• sampleShadingEnable can be used to enable Sample Shading.

• minSampleShading specifies a minimum fraction of sample shading if sampleShadingEnable is set to VK_TRUE.

• pSampleMask is a bitmask of static coverage information that is ANDed with the coverage information generated during rasterization, as described in Sample Mask.

• alphaToCoverageEnable controls whether a temporary coverage value is generated based on the alpha component of the fragment’s first color output as specified in the Multisample Coverage section.

• alphaToOneEnable controls whether the alpha component of the fragment’s first color output is replaced with one as described in Multisample Coverage.

## Description

Valid Usage
• If the sample rate shading feature is not enabled, sampleShadingEnable must be VK_FALSE

• If the alpha to one feature is not enabled, alphaToOneEnable must be VK_FALSE

• minSampleShading must be in the range [0,1]

• If the VK_NV_framebuffer_mixed_samples extension is enabled, and if the subpass has any color attachments and rasterizationSamples is greater than the number of color samples, then sampleShadingEnable must be VK_FALSE

Valid Usage (Implicit)