Class AMDShaderTrinaryMinmax



  • public final class AMDShaderTrinaryMinmax
    extends java.lang.Object
    When the VK_AMD_shader_trinary_minmax device extension is enabled the application can pass a SPIR-V module to CreateShaderModule that uses the SPV_AMD_shader_trinary_minmax SPIR-V extension.

    This extension is written to provide the functionality of the AMD_shader_trinary_minmax, OpenGL Shading Language Specification extension, for SPIR-V.

    This extension introduces nine new trinary extended instructions to SPIR-V. These functions allow the minimum, maximum or median of three inputs to be found with a single function call. These operations may be useful for sorting and filtering operations, for example. By explicitly performing a trinary operation with a single built-in function, shader compilers and optimizers may be able to generate better instruction sequences to perform sorting and to other multi-input functions.

    This extension adds the following extended instructions:

    • FMin3AMD
    • UMin3AMD
    • SMin3AMD
    • FMax3AMD
    • UMax3AMD
    • SMax3AMD
    • FMid3AMD
    • UMid3AMD
    • SMid3AMD
    • Field Detail

      • VK_AMD_SHADER_TRINARY_MINMAX_SPEC_VERSION

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

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