Class EXTConservativeRasterization
When overestimation is enabled, if any part of the primitive, including its edges, covers any part of the rectangular pixel area, including its sides, then a fragment is generated with all coverage samples turned on. This extension allows for some variation in implementations by accounting for differences in overestimation, where the generating primitive size is increased at each of its edges by some sub-pixel amount to further increase conservative pixel coverage. Implementations can allow the application to specify an extra overestimation beyond the base overestimation the implementation already does. It also allows implementations to either cull degenerate primitives or rasterize them.
When underestimation is enabled, fragments are only generated if the rectangular pixel area is fully covered by the generating primitive. If supported by the implementation, when a pixel rectangle is fully covered the fragment shader input variable builtin called FullyCoveredEXT is set to true. The shader variable works in either overestimation or underestimation mode.
Implementations can process degenerate triangles and lines by either discarding them or generating conservative fragments for them. Degenerate triangles are those that end up with zero area after the rasterizer quantizes them to the fixed-point pixel grid. Degenerate lines are those with zero length after quantization.
- Name String
VK_EXT_conservative_rasterization- Extension Type
- Device extension
- Registered Extension Number
- 102
- Revision
- 1
- Extension and Version Dependencies
VK_KHR_get_physical_device_properties2or Version 1.1- SPIR-V Dependencies
- Contact
- Piers Daniell pdaniell-nv
Other Extension Metadata
- Last Modified Date
- 2020-06-09
- Interactions and External Dependencies
- This extension requires
SPV_EXT_fragment_fully_coveredif theVkPhysicalDeviceConservativeRasterizationPropertiesEXT::fullyCoveredFragmentShaderInputVariablefeature is used. - This extension requires
SPV_KHR_post_depth_coverageif theVkPhysicalDeviceConservativeRasterizationPropertiesEXT::conservativeRasterizationPostDepthCoveragefeature is used. - This extension provides API support for
GL_NV_conservative_raster_underestimationif theVkPhysicalDeviceConservativeRasterizationPropertiesEXT::fullyCoveredFragmentShaderInputVariablefeature is used.
- This extension requires
- Contributors
- Daniel Koch, NVIDIA
- Daniel Rakos, AMD
- Jeff Bolz, NVIDIA
- Slawomir Grajewski, Intel
- Stu Smith, Imagination Technologies
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intVkConservativeRasterizationModeEXT - Specify the conservative rasterization modestatic final intVkConservativeRasterizationModeEXT - Specify the conservative rasterization modestatic final intVkConservativeRasterizationModeEXT - Specify the conservative rasterization modestatic final StringThe extension name.static final intThe extension specification version.static final intExtendsVkStructureType.static final intExtendsVkStructureType. -
Method Summary
-
Field Details
-
VK_EXT_CONSERVATIVE_RASTERIZATION_SPEC_VERSION
public static final int VK_EXT_CONSERVATIVE_RASTERIZATION_SPEC_VERSIONThe extension specification version.- See Also:
-
VK_EXT_CONSERVATIVE_RASTERIZATION_EXTENSION_NAME
The extension name.- See Also:
-
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CONSERVATIVE_RASTERIZATION_PROPERTIES_EXT
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CONSERVATIVE_RASTERIZATION_PROPERTIES_EXTExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_CONSERVATIVE_STATE_CREATE_INFO_EXT
public static final int VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_CONSERVATIVE_STATE_CREATE_INFO_EXTExtendsVkStructureType.Enum values:
- See Also:
-
VK_CONSERVATIVE_RASTERIZATION_MODE_DISABLED_EXT
public static final int VK_CONSERVATIVE_RASTERIZATION_MODE_DISABLED_EXTVkConservativeRasterizationModeEXT - Specify the conservative rasterization modeDescription
CONSERVATIVE_RASTERIZATION_MODE_DISABLED_EXTspecifies that conservative rasterization is disabled and rasterization proceeds as normal.CONSERVATIVE_RASTERIZATION_MODE_OVERESTIMATE_EXTspecifies that conservative rasterization is enabled in overestimation mode.CONSERVATIVE_RASTERIZATION_MODE_UNDERESTIMATE_EXTspecifies that conservative rasterization is enabled in underestimation mode.
See Also
VkPipelineRasterizationConservativeStateCreateInfoEXT,CmdSetConservativeRasterizationModeEXT- See Also:
-
VK_CONSERVATIVE_RASTERIZATION_MODE_OVERESTIMATE_EXT
public static final int VK_CONSERVATIVE_RASTERIZATION_MODE_OVERESTIMATE_EXTVkConservativeRasterizationModeEXT - Specify the conservative rasterization modeDescription
CONSERVATIVE_RASTERIZATION_MODE_DISABLED_EXTspecifies that conservative rasterization is disabled and rasterization proceeds as normal.CONSERVATIVE_RASTERIZATION_MODE_OVERESTIMATE_EXTspecifies that conservative rasterization is enabled in overestimation mode.CONSERVATIVE_RASTERIZATION_MODE_UNDERESTIMATE_EXTspecifies that conservative rasterization is enabled in underestimation mode.
See Also
VkPipelineRasterizationConservativeStateCreateInfoEXT,CmdSetConservativeRasterizationModeEXT- See Also:
-
VK_CONSERVATIVE_RASTERIZATION_MODE_UNDERESTIMATE_EXT
public static final int VK_CONSERVATIVE_RASTERIZATION_MODE_UNDERESTIMATE_EXTVkConservativeRasterizationModeEXT - Specify the conservative rasterization modeDescription
CONSERVATIVE_RASTERIZATION_MODE_DISABLED_EXTspecifies that conservative rasterization is disabled and rasterization proceeds as normal.CONSERVATIVE_RASTERIZATION_MODE_OVERESTIMATE_EXTspecifies that conservative rasterization is enabled in overestimation mode.CONSERVATIVE_RASTERIZATION_MODE_UNDERESTIMATE_EXTspecifies that conservative rasterization is enabled in underestimation mode.
See Also
VkPipelineRasterizationConservativeStateCreateInfoEXT,CmdSetConservativeRasterizationModeEXT- See Also:
-