SPV_EXT_demote_to_helper_invocation SPIR-V extension. That SPIR-V extension provides a new instruction OpDemoteToHelperInvocationEXT allowing shaders to “demote” a fragment shader invocation to behave like a helper invocation for its duration. The demoted invocation will have no further side effects and will not output to the framebuffer, but remains active and can participate in computing derivatives and in group operations. This is a better match for the “discard” instruction in HLSL.
Functionality in this extension is included in core Vulkan 1.3, with the EXT suffix omitted. The original type, enum and command names are still available as aliases of the core functionality.
VK_EXT_shader_demote_to_helper_invocationVK_KHR_get_physical_device_properties2 or Version 1.1SPV_EXT_demote_to_helper_invocationGL_EXT_demote_to_helper_invocation| Modifier and Type | Field and Description |
|---|---|
| public static final String | VK_EXT_SHADER_DEMOTE_TO_HELPER_INVOCATION_EXTENSION_NAME
The extension name. |
| public static final int | VK_EXT_SHADER_DEMOTE_TO_HELPER_INVOCATION_SPEC_VERSION
The extension specification version. |
| public static final int | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DEMOTE_TO_HELPER_INVOCATION_FEATURES_EXT
Extends |
| Access | Constructor and Description |
|---|---|
| private |
| VK_EXT_SHADER_DEMOTE_TO_HELPER_INVOCATION_EXTENSION_NAME | back to summary |
|---|---|
| public static final String VK_EXT_SHADER_DEMOTE_TO_HELPER_INVOCATION_EXTENSION_NAME The extension name. | |
| VK_EXT_SHADER_DEMOTE_TO_HELPER_INVOCATION_SPEC_VERSION | back to summary |
|---|---|
| public static final int VK_EXT_SHADER_DEMOTE_TO_HELPER_INVOCATION_SPEC_VERSION The extension specification version. | |
| VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DEMOTE_TO_HELPER_INVOCATION_FEATURES_EXT | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DEMOTE_TO_HELPER_INVOCATION_FEATURES_EXT Extends | |
| EXTShaderDemoteToHelperInvocation | back to summary |
|---|---|
| private EXTShaderDemoteToHelperInvocation() | |