Class EXTShaderDemoteToHelperInvocation


  • public final class EXTShaderDemoteToHelperInvocation
    extends java.lang.Object
    This extension adds Vulkan support for the 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 subgroup operations. This is a better match for the "discard" instruction in HLSL.
    Examples

    None.

    Name String
    VK_EXT_shader_demote_to_helper_invocation
    Extension Type
    Device extension
    Registered Extension Number
    277
    Revision
    1
    Extension and Version Dependencies
    Contact
    Last Modified Date
    2019-06-01
    IP Status
    No known IP claims.
    Contributors
    • Jeff Bolz, NVIDIA
    • Field Detail

      • VK_EXT_SHADER_DEMOTE_TO_HELPER_INVOCATION_SPEC_VERSION

        public static final int VK_EXT_SHADER_DEMOTE_TO_HELPER_INVOCATION_SPEC_VERSION
        The extension specification version.
        See Also:
        Constant Field Values
      • VK_EXT_SHADER_DEMOTE_TO_HELPER_INVOCATION_EXTENSION_NAME

        public static final java.lang.String VK_EXT_SHADER_DEMOTE_TO_HELPER_INVOCATION_EXTENSION_NAME
        The extension name.
        See Also:
        Constant Field Values
      • VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DEMOTE_TO_HELPER_INVOCATION_FEATURES_EXT

        public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DEMOTE_TO_HELPER_INVOCATION_FEATURES_EXT
        Extends VkStructureType.
        See Also:
        Constant Field Values