org.lwjgl.vulkan.KHRShaderClock Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-vulkan Show documentation
Show all versions of lwjgl-vulkan Show documentation
A new generation graphics and compute API that provides high-efficiency, cross-platform access to modern GPUs used in a wide variety of devices from PCs and consoles to mobile phones and embedded platforms.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.vulkan;
/**
* This extension advertises the SPIR-V {@code 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 {@code OpReadClockKHR} are {@code Subgroup} and {@code Device}.
*
* When using GLSL source-based shading languages, the {@code clockRealtime*EXT}() timing functions map to the {@code OpReadClockKHR} instruction with a scope of {@code Device}, and the {@code clock*ARB}() timing functions map to the {@code OpReadClockKHR} instruction with a scope of {@code Subgroup}.
*
* VK_KHR_shader_clock
*
*
* - Name String
* - {@code VK_KHR_shader_clock}
* - Extension Type
* - Device extension
* - Registered Extension Number
* - 182
* - Revision
* - 1
* - Extension and Version Dependencies
*
* - Requires Vulkan 1.0
* - Requires {@link KHRGetPhysicalDeviceProperties2 VK_KHR_get_physical_device_properties2}
*
* - Contact
*
* - Aaron Hagan ahagan
*
*
*
* Other Extension Metadata
*
*
* - Last Modified Date
* - 2019-4-25
* - IP Status
* - No known IP claims.
* - Interactions and External Dependencies
*
* - This extension requires {@code SPV_KHR_shader_clock}.
* - This extension provides API support for {@code ARB_shader_clock} and {@code EXT_shader_realtime_clock}
*
* - Contributors
*
* - Aaron Hagan, AMD
* - Daniel Koch, NVIDIA
*
*
*/
public final class KHRShaderClock {
/** The extension specification version. */
public static final int VK_KHR_SHADER_CLOCK_SPEC_VERSION = 1;
/** The extension name. */
public static final String VK_KHR_SHADER_CLOCK_EXTENSION_NAME = "VK_KHR_shader_clock";
/** Extends {@code VkStructureType}. */
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CLOCK_FEATURES_KHR = 1000181000;
private KHRShaderClock() {}
}