Class VkPipelineMultisampleStateCreateInfo

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class VkPipelineMultisampleStateCreateInfo
    extends Struct
    implements NativeResource
    Structure specifying parameters of a newly created pipeline multisample state.
    Valid Usage
    • If the sample rate shading feature is not enabled, sampleShadingEnable must be FALSE
    • If the alpha to one feature is not enabled, alphaToOneEnable must be FALSE
    • minSampleShading must be in the range [0,1]
    • If the subpass has any color attachments and rasterizationSamples is greater than the number of color samples, then sampleShadingEnable must be FALSE
    Valid Usage (Implicit)
    See Also

    VkGraphicsPipelineCreateInfo

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • flags – reserved for future use.
    • rasterizationSamples – a VkSampleCountFlagBits specifying the number of samples per pixel used in rasterization.
    • sampleShadingEnablecan be used to enable Sample Shading.
    • minSampleShading – specifies a minimum fraction of sample shading if sampleShadingEnable is set to TRUE.
    • pSampleMask – 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.

    Layout

    
     struct VkPipelineMultisampleStateCreateInfo {
         VkStructureType sType;
         void const * pNext;
         VkPipelineMultisampleStateCreateFlags flags;
         VkSampleCountFlagBits rasterizationSamples;
         VkBool32 sampleShadingEnable;
         float minSampleShading;
         VkSampleMask const * pSampleMask;
         VkBool32 alphaToCoverageEnable;
         VkBool32 alphaToOneEnable;
     }