Safe Haskell | None |
---|---|
Language | Haskell2010 |
Vulkan.Extensions.VK_KHR_shader_clock
Description
Name
VK_KHR_shader_clock - device extension
VK_KHR_shader_clock
- Name String
VK_KHR_shader_clock
- Extension Type
- Device extension
- Registered Extension Number
- 182
- Revision
- 1
- Extension and Version Dependencies
- Requires Vulkan 1.0
- Requires
VK_KHR_get_physical_device_properties2
- Contact
Other Extension Metadata
- Last Modified Date
- 2019-4-25
- IP Status
- No known IP claims.
- Interactions and External Dependencies
- This extension requires SPV_KHR_shader_clock.
- This extension provides API support for ARB_shader_clock and EXT_shader_realtime_clock
- Contributors
- Aaron Hagan, AMD
- Daniel Koch, NVIDIA
Description
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
.
New Structures
New Enum Constants
KHR_SHADER_CLOCK_SPEC_VERSION
Extending
StructureType
:
New SPIR-V Capabilities
Version History
Revision 1, 2019-4-25 (Aaron Hagan)
- Initial revision
See Also
PhysicalDeviceShaderClockFeaturesKHR
Document Notes
For more information, see the Vulkan Specification
This page is a generated document. Fixes and changes should be made to the generator scripts, not directly.
Synopsis
- data PhysicalDeviceShaderClockFeaturesKHR = PhysicalDeviceShaderClockFeaturesKHR {}
- type KHR_SHADER_CLOCK_SPEC_VERSION = 1
- pattern KHR_SHADER_CLOCK_SPEC_VERSION :: forall a. Integral a => a
- type KHR_SHADER_CLOCK_EXTENSION_NAME = "VK_KHR_shader_clock"
- pattern KHR_SHADER_CLOCK_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
Documentation
data PhysicalDeviceShaderClockFeaturesKHR Source #
VkPhysicalDeviceShaderClockFeaturesKHR - Structure describing features supported by VK_KHR_shader_clock
Description
If the PhysicalDeviceShaderClockFeaturesKHR
structure is included in
the pNext
chain of
PhysicalDeviceFeatures2
,
it is filled with values indicating whether each feature is supported.
PhysicalDeviceShaderClockFeaturesKHR
can also be included in the
pNext
chain of DeviceCreateInfo
to enable the
features.
Valid Usage (Implicit)
See Also
Constructors
PhysicalDeviceShaderClockFeaturesKHR | |
Fields
|
Instances
type KHR_SHADER_CLOCK_SPEC_VERSION = 1 Source #
pattern KHR_SHADER_CLOCK_SPEC_VERSION :: forall a. Integral a => a Source #
type KHR_SHADER_CLOCK_EXTENSION_NAME = "VK_KHR_shader_clock" Source #
pattern KHR_SHADER_CLOCK_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #