Dependencies
This extension is written against the SPIR-V Specification, Version 1.1 Revision 4.
This extension requires SPIR-V 1.0.
Overview
This extension provides a new builtin variable decoration to support the OpenGL GL_NV_sample_mask_override_coverage and Vulkan VK_NV_sample_mask_override_coverage extensions in SPIR-V.
The OverrideCoverageNV decoration corresponds to the override_coverage layout qualifier annotation.
Extension Name
To use this extension within a SPIR-V module, the following OpExtension must be present in the module:
OpExtension "SPV_NV_sample_mask_override_coverage"
New Capabilities
This extension introduces a new capability:
SampleMaskOverrideCoverageNV
that depends on the SampleRateShading capability.
New Decorations
Decorations added under the SampleMaskOverrideCoverageNV capability
OverrideCoverageNV
Modifications to the SPIR-V Specification, Version 1.1
- (Modify Section 3.20, Decoration, adding a row to the Decoration table)
-
Decoration Enabling Capabilities Extra Operands 5248
OverrideCoverageNV
Allows the fragment shader to control whether the SampleMask builtin output can enable samples that were not covered by the original primitive, or that failed the early depth/stencil tests.SampleMaskOverrideCoverageNV
- (Modify Section 3.31, Capability, adding a row to the Capability table)
-
Capability Implicitly Declares Enabled by Extension 5249
SampleMaskOverrideCoverageNV
SampleRateShading
SPV_NV_sample_mask_override_coverage