Specifying a pipeline multisample state
Multisampling is a process that eliminates jagged edges of drawn primitives. In other words, it allows us to anti-alias polygons, lines and points. We define how multisampling is performed (and if at all) through a multisample state.
How to do it...
- Create a variable of type
VkPipelineMultisampleStateCreateInfo
namedmultisample_state_create_info
. Use the following values to initialize its members:VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO
value forsType
nullptr
value forpNext
0
value forflags
- The number of samples generated per pixel for
rasterizationSamples
- A
true
value if per sample shading should be enabled (only ifsampleRateShading
feature is enabled) orfalse
otherwise forsampleShadingEnable
- A minimum fraction of uniquely shaded samples, when sample shading is enabled, for
minSampleShading
- A pointer to an array of bitmasks that controls a fragment's static coverage or a
nullptr
value to indicate that no coverage is removed from the...