Name Strings
SPV_AMD_shader_early_and_late_fragment_tests
Contact
To report problems with this extension, please open a new issue at:
Contributors
-
Tobias Hector, AMD
Notice
Copyright (c) 2021 The Khronos Group Inc. Copyright terms at http://www.khronos.org/registry/speccopyright.html
Status
-
Draft
Version
Last Modified Date |
2021-11-05 |
Revision |
1 |
Dependencies
This extension is written against the SPIR-V Specification, Version 1.5 Revision 5.
This extension requires SPIR-V 1.0.
Overview
This extension adds the EarlyAndLateFragmentTestsAMD Execution Mode, which enables both early and late fragment tests in some circumstances.
Additionally, it adds execution modes describing how the shader stencil value is written, allowing stencil writes to be used with this new mode.
Extension Name
To use this extension within a SPIR-V module, the following OpExtension must be present in the module:
OpExtension "SPV_AMD_shader_early_and_late_fragment_tests"
Modifications to the SPIR-V Specification, Version 1.5
Capabilities
Modify Section 3.6, "Execution Mode", adding the following row to the table:
Execution mode | Extra Operands | Enabling Capabilities | |
---|---|---|---|
5017 |
EarlyAndLateFragmentTestsAMD |
Shader |
|
5079 |
StencilRefUnchangedFrontAMD |
StencilExportEXT |
|
5080 |
StencilRefGreaterFrontAMD |
StencilExportEXT |
|
5081 |
StencilRefLessFrontAMD |
StencilExportEXT |
|
5082 |
StencilRefUnchangedBackAMD |
StencilExportEXT |
|
5083 |
StencilRefGreaterBackAMD |
StencilExportEXT |
|
5084 |
StencilRefLessBackAMD |
StencilExportEXT |
Revision History
Rev | Date | Author | Changes |
---|---|---|---|
1 |
2021-11-05 |
Tobias Hector |
Initial extension. |