Notice
Copyright (c) 2026 The Khronos Group Inc. Copyright terms at http://www.khronos.org/registry/speccopyright.html
Status
-
Approved by the SPIR-V Working Group: 2026-10-07
-
Approved by the Khronos Board of Promoters: 2026-11-20
Dependencies
This extension is written against the SPIR-V Specification, Version 1.6 Revision 7.
This extension requires SPIR-V 1.0.
Overview
This extension adds the EarlyAndLateFragmentTestsEXT Execution Mode and a corresponding ShaderEarlyAndLateFragmentTestsEXT Capability, which allow early and late fragment tests to be performed for a fragment shader even when that shader has side effects (writes to storage resources).
It is a multi-vendor variant of SPV_AMD_shader_early_and_late_fragment_tests. It adds only the EarlyAndLateFragmentTestsEXT execution mode; it does not add the stencil-reference comparison execution modes of that extension. The execution mode may still be used together with ExecutionModeStencilRefReplacingEXT, but does not require a stencil-reference comparison execution mode in that case. This lets implementations that support shader stencil-reference replacement retain that functionality, while implementations that do not are unaffected.
Extension Name
To use this extension within a SPIR-V module, the following OpExtension must be present in the module:
OpExtension "SPV_EXT_shader_early_and_late_fragment_tests"
Modifications to the SPIR-V Specification, Version 1.6
Execution Mode
Modify Section 3.2.5, "Execution Mode", adding the following row to the table:
| Execution mode | Extra Operands | Enabling Capabilities | |
|---|---|---|---|
5452 |
EarlyAndLateFragmentTestsEXT |
ShaderEarlyAndLateFragmentTestsEXT |
|
Validation Rules
An OpExtension must be added to the SPIR-V for validation layers to check legal use of this extension:
OpExtension "SPV_EXT_shader_early_and_late_fragment_tests"