Notice
Copyright (c) 2017 The Khronos Group Inc. Copyright terms at http://www.khronos.org/registry/speccopyright.html
Dependencies
This extension is written against Revision 1 of the version 1.10 of the SPIR-V Specification.
The extension is written against Revision 1 of the OpenGL extension ARB_shader_stencil_export.
Overview
This extension is written to provide the functionality of the ARB_shader_stencil_export, OpenGL Shading Language Specification extension, for SPIR-V.
This extension adds a new capability, as well as a new built-in. Both, when combined, let the application output a specific reference stencil value from within a fragment shader.
Extension Name
To enable SPV_EXT_shader_stencil_export extension in SPIR-V, use
OpExtension "SPV_EXT_shader_stencil_export"
New Execution Mode
This extension introduces a new execution mode:
ExecutionModeStencilRefReplacingEXT
New Builtins
This extension adds the following builtins:
FragStencilRefEXT = 5014
FragStencilRefEXT must only decorate output variable whose type is an arbitrary-sized integer type scalar.
Token Number Assignments
CapabilityStencilExportEXT |
5013 |
BuiltInFragStencilRefEXT |
5014 |
ExecutionModeStencilRefReplacingEXT |
5027 |