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_clockVK_KHR_get_physical_device_properties2 or Version 1.1SPV_KHR_shader_clock.ARB_shader_clock and EXT_shader_realtime_clock| Modifier and Type | Field and Description |
|---|---|
| public static final String | VK_KHR_SHADER_CLOCK_EXTENSION_NAME
The extension name. |
| public static final int | VK_KHR_SHADER_CLOCK_SPEC_VERSION
The extension specification version. |
| public static final int | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CLOCK_FEATURES_KHR
Extends |
| Access | Constructor and Description |
|---|---|
| private |
| VK_KHR_SHADER_CLOCK_EXTENSION_NAME | back to summary |
|---|---|
| public static final String VK_KHR_SHADER_CLOCK_EXTENSION_NAME The extension name. | |
| VK_KHR_SHADER_CLOCK_SPEC_VERSION | back to summary |
|---|---|
| public static final int VK_KHR_SHADER_CLOCK_SPEC_VERSION The extension specification version. | |
| VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CLOCK_FEATURES_KHR | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CLOCK_FEATURES_KHR Extends | |
| KHRShaderClock | back to summary |
|---|---|
| private KHRShaderClock() | |