Class KHRShaderClock


  • public final class KHRShaderClock
    extends java.lang.Object
    This extension advertises the SPIR-V ShaderClockKHR capability for Vulkan, which allows a shader to query a real-time or monotonically incrementing counter at the subgroup level or across the device level. The two valid SPIR-V scopes for OpReadClockKHR are Subgroup and Device.

    When using GLSL source-based shading languages, the clockRealtime*EXT() timing functions map to the OpReadClockKHR instruction with a scope of Device, and the clock*ARB() timing functions map to the OpReadClockKHR instruction with a scope of Subgroup.

    VK_KHR_shader_clock
    Name String
    VK_KHR_shader_clock
    Extension Type
    Device extension
    Registered Extension Number
    182
    Revision
    1
    Extension and Version Dependencies
    Contact
    Other Extension Metadata
    Last Modified Date
    2019-4-25
    IP Status
    No known IP claims.
    Interactions and External Dependencies
    Contributors
    • Aaron Hagan, AMD
    • Daniel Koch, NVIDIA
    • Field Detail

      • VK_KHR_SHADER_CLOCK_SPEC_VERSION

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

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

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