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
VkPipelineMultisampleStateCreateInfonamedmultisample_state_create_info. Use the following values to initialize its members:VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFOvalue forsTypenullptrvalue forpNext0value forflags- The number of samples generated per pixel for
rasterizationSamples - A
truevalue if per sample shading should be enabled (only ifsampleRateShadingfeature is enabled) orfalseotherwise 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
nullptrvalue to indicate that no coverage is removed from the...