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.
Specifying a pipeline multisample state
How to do it...
- Create a variable of type VkPipelineMultisampleStateCreateInfo named multisample_state_create_info. Use the following values to initialize its members:
- VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO value for sType
- nullptr value for pNext
- 0 value for flags
- The number of samples generated per pixel for rasterizationSamples
- A true value if per sample shading should be enabled (only if sampleRateShading feature is enabled) or false otherwise for sampleShadingEnable
- A minimum...