Each bit in the sample mask is associated with a unique sample index as defined for the coverage mask. Each bit b for mask word w in the sample mask corresponds to sample index i, where i = 32 × w + b. pSampleMask has a length equal to ⌈ rasterizationSamples / 32 ⌉ words.
If pSampleMask is NULL, it is treated as if the mask has all bits set to 1.
sampleRateShading feature is not enabled, sampleShadingEnable must be FALSEalphaToOne feature is not enabled, alphaToOneEnable must be FALSEminSampleShading must be in the range [0,1]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 FALSEsType must be STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFOpNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkPipelineCoverageModulationStateCreateInfoNV, VkPipelineCoverageReductionStateCreateInfoNV, VkPipelineCoverageToColorStateCreateInfoNV, or VkPipelineSampleLocationsStateCreateInfoEXTsType value of each struct in the pNext chain must be uniqueflags must be 0rasterizationSamples must be a valid VkSampleCountFlagBits valuepSampleMask is not NULL, pSampleMask must be a valid pointer to an array of ceil(rasterizationSamples / 32) VkSampleMask values
struct VkPipelineMultisampleStateCreateInfo {
VkStructureType sType;
void const * pNext;
VkPipelineMultisampleStateCreateFlags flags;
VkSampleCountFlagBits rasterizationSamples;
VkBool32 sampleShadingEnable;
float minSampleShading;
VkSampleMask const * pSampleMask;
VkBool32 alphaToCoverageEnable;
VkBool32 alphaToOneEnable;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkPipelineMultisampleStateCreateInfo.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | ALPHATOCOVERAGEENABLE
The struct member offsets. |
| public static final int | ALPHATOONEENABLE
The struct member offsets. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | MINSAMPLESHADING
The struct member offsets. |
| public static final int | PNEXT
The struct member offsets. |
| public static final int | PSAMPLEMASK
The struct member offsets. |
| public static final int | RASTERIZATIONSAMPLES
The struct member offsets. |
| public static final int | SAMPLESHADINGENABLE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkPipelineMultisampleStateCreateInfo(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | 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. |
| public VkPipelineMultisampleStateCreateInfo | |
| public boolean | alphaToOneEnable()
controls whether the alpha component of the fragment’s first color output is replaced with one as described in Multisample Coverage. |
| public VkPipelineMultisampleStateCreateInfo | |
| public static VkPipelineMultisampleStateCreateInfo | |
| public static VkPipelineMultisampleStateCreateInfo. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkPipelineMultisampleStateCreateInfo | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkPipelineMultisampleStateCreateInfo. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkPipelineMultisampleStateCreateInfo | |
| public static VkPipelineMultisampleStateCreateInfo | |
| public static VkPipelineMultisampleStateCreateInfo. | |
| public static VkPipelineMultisampleStateCreateInfo. | |
| protected VkPipelineMultisampleStateCreateInfo | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkPipelineMultisampleStateCreateInfo | |
| public static VkPipelineMultisampleStateCreateInfo | create(long address)
Returns a new |
| public static VkPipelineMultisampleStateCreateInfo. | create(int
the buffer capacity capacity)Returns a new |
| public static VkPipelineMultisampleStateCreateInfo. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkPipelineMultisampleStateCreateInfo | |
| public static VkPipelineMultisampleStateCreateInfo. | |
| public int | |
| public VkPipelineMultisampleStateCreateInfo | |
| public static VkPipelineMultisampleStateCreateInfo | |
| public static VkPipelineMultisampleStateCreateInfo. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkPipelineMultisampleStateCreateInfo | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkPipelineMultisampleStateCreateInfo. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkPipelineMultisampleStateCreateInfo | |
| public static VkPipelineMultisampleStateCreateInfo | |
| public static VkPipelineMultisampleStateCreateInfo. | |
| public static VkPipelineMultisampleStateCreateInfo. | |
| public float | minSampleShading()
specifies a minimum fraction of sample shading if |
| public VkPipelineMultisampleStateCreateInfo | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static float | |
| public static void | |
| public static long | |
| public static void | |
| public static IntBuffer | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public long | |
| public VkPipelineMultisampleStateCreateInfo | |
| public VkPipelineMultisampleStateCreateInfo | pNext(VkPipelineCoverageModulationStateCreateInfoNV value)
Prepends the specified |
| public VkPipelineMultisampleStateCreateInfo | pNext(VkPipelineCoverageReductionStateCreateInfoNV value)
Prepends the specified |
| public VkPipelineMultisampleStateCreateInfo | pNext(VkPipelineCoverageToColorStateCreateInfoNV value)
Prepends the specified |
| public VkPipelineMultisampleStateCreateInfo | pNext(VkPipelineSampleLocationsStateCreateInfoEXT value)
Prepends the specified |
| public IntBuffer | |
| public VkPipelineMultisampleStateCreateInfo | |
| public int | rasterizationSamples()
a |
| public VkPipelineMultisampleStateCreateInfo | |
| public boolean | |
| public VkPipelineMultisampleStateCreateInfo | |
| public VkPipelineMultisampleStateCreateInfo | |
| public VkPipelineMultisampleStateCreateInfo | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkPipelineMultisampleStateCreateInfo | |
| public VkPipelineMultisampleStateCreateInfo | sType$Default()
Sets the |