Package org.lwjgl.vulkan
Class KHRTimelineSemaphore
- java.lang.Object
-
- org.lwjgl.vulkan.KHRTimelineSemaphore
-
public class KHRTimelineSemaphore extends java.lang.ObjectThis extension introduces a new type of semaphore that has an integer payload identifying a point in a timeline. Such timeline semaphores support the following operations:- Host query - A host operation that allows querying the payload of the timeline semaphore.
- Host wait - A host operation that allows a blocking wait for a timeline semaphore to reach a specified value.
- Host signal - A host operation that allows advancing the timeline semaphore to a specified value.
- Device wait - A device operation that allows waiting for a timeline semaphore to reach a specified value.
- Device signal - A device operation that allows advancing the timeline semaphore to a specified value.
Promotion to Vulkan 1.2
All functionality in this extension is included in core Vulkan 1.2, with the KHR suffix omitted. The original type, enum and command names are still available as aliases of the core functionality.
VK_KHR_timeline_semaphore
- Name String
VK_KHR_timeline_semaphore- Extension Type
- Device extension
- Registered Extension Number
- 208
- Revision
- 2
- Extension and Version Dependencies
- Requires Vulkan 1.0
- Requires
VK_KHR_get_physical_device_properties2
- Deprecation state
- Promoted to Vulkan 1.2
- Contact
- Jason Ekstrand jekstrand
Other Extension Metadata
- Last Modified Date
- 2019-06-12
- IP Status
- No known IP claims.
- Interactions and External Dependencies
- This extension interacts with
VK_KHR_external_semaphore_capabilities - This extension interacts with
VK_KHR_external_semaphore - This extension interacts with
VK_KHR_external_semaphore_win32 - Promoted to Vulkan 1.2 Core
- This extension interacts with
- Contributors
- Jeff Bolz, NVIDIA
- Yuriy O’Donnell, Epic Games
- Jason Ekstrand, Intel
- Jesse Hall, Google
- James Jones, NVIDIA
- Jeff Juliano, NVIDIA
- Daniel Rakos, AMD
- Ray Smith, Arm
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringVK_KHR_TIMELINE_SEMAPHORE_EXTENSION_NAMEThe extension name.static intVK_KHR_TIMELINE_SEMAPHORE_SPEC_VERSIONThe extension specification version.static intVK_SEMAPHORE_TYPE_BINARY_KHR
VK_SEMAPHORE_TYPE_TIMELINE_KHRExtendsVkSemaphoreType.static intVK_SEMAPHORE_WAIT_ANY_BIT_KHRExtendsVkSemaphoreWaitFlagBits.static intVK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURES_KHR
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_PROPERTIES_KHR
VK_STRUCTURE_TYPE_SEMAPHORE_SIGNAL_INFO_KHR
VK_STRUCTURE_TYPE_SEMAPHORE_TYPE_CREATE_INFO_KHR
VK_STRUCTURE_TYPE_SEMAPHORE_WAIT_INFO_KHR
VK_STRUCTURE_TYPE_TIMELINE_SEMAPHORE_SUBMIT_INFO_KHRExtendsVkStructureType.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intnvkGetSemaphoreCounterValueKHR(org.lwjgl.vulkan.VkDevice device, long semaphore, long pValue)Unsafe version of:GetSemaphoreCounterValueKHRstatic intnvkSignalSemaphoreKHR(org.lwjgl.vulkan.VkDevice device, long pSignalInfo)Unsafe version of:SignalSemaphoreKHRstatic intnvkWaitSemaphoresKHR(org.lwjgl.vulkan.VkDevice device, long pWaitInfo, long timeout)Unsafe version of:WaitSemaphoresKHRstatic intvkGetSemaphoreCounterValueKHR(org.lwjgl.vulkan.VkDevice device, long semaphore, long[] pValue)Array version of:GetSemaphoreCounterValueKHRstatic intvkGetSemaphoreCounterValueKHR(org.lwjgl.vulkan.VkDevice device, long semaphore, java.nio.LongBuffer pValue)static intvkSignalSemaphoreKHR(org.lwjgl.vulkan.VkDevice device, VkSemaphoreSignalInfo pSignalInfo)SeeSignalSemaphore.static intvkWaitSemaphoresKHR(org.lwjgl.vulkan.VkDevice device, VkSemaphoreWaitInfo pWaitInfo, long timeout)SeeWaitSemaphores.
-
-
-
Field Detail
-
VK_KHR_TIMELINE_SEMAPHORE_SPEC_VERSION
The extension specification version.
-
VK_KHR_TIMELINE_SEMAPHORE_EXTENSION_NAME
The extension name.
-
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURES_KHR, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_PROPERTIES_KHR, VK_STRUCTURE_TYPE_SEMAPHORE_TYPE_CREATE_INFO_KHR, VK_STRUCTURE_TYPE_TIMELINE_SEMAPHORE_SUBMIT_INFO_KHR, VK_STRUCTURE_TYPE_SEMAPHORE_WAIT_INFO_KHR, VK_STRUCTURE_TYPE_SEMAPHORE_SIGNAL_INFO_KHR
ExtendsVkStructureType.Enum values:
STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURES_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_PROPERTIES_KHRSTRUCTURE_TYPE_SEMAPHORE_TYPE_CREATE_INFO_KHRSTRUCTURE_TYPE_TIMELINE_SEMAPHORE_SUBMIT_INFO_KHRSTRUCTURE_TYPE_SEMAPHORE_WAIT_INFO_KHRSTRUCTURE_TYPE_SEMAPHORE_SIGNAL_INFO_KHR
-
VK_SEMAPHORE_WAIT_ANY_BIT_KHR
ExtendsVkSemaphoreWaitFlagBits.
-
-
Method Detail
-
nvkGetSemaphoreCounterValueKHR
public static int nvkGetSemaphoreCounterValueKHR(org.lwjgl.vulkan.VkDevice device, long semaphore, long pValue)Unsafe version of:GetSemaphoreCounterValueKHR
-
vkGetSemaphoreCounterValueKHR
public static int vkGetSemaphoreCounterValueKHR(org.lwjgl.vulkan.VkDevice device, long semaphore, java.nio.LongBuffer pValue)- Parameters:
device- the logical device that owns the semaphore.semaphore- the handle of the semaphore to query.pValue- a pointer to a 64-bit integer value in which the current counter value of the semaphore is returned.
-
nvkWaitSemaphoresKHR
public static int nvkWaitSemaphoresKHR(org.lwjgl.vulkan.VkDevice device, long pWaitInfo, long timeout)Unsafe version of:WaitSemaphoresKHR
-
vkWaitSemaphoresKHR
public static int vkWaitSemaphoresKHR(org.lwjgl.vulkan.VkDevice device, VkSemaphoreWaitInfo pWaitInfo, long timeout)SeeWaitSemaphores.- Parameters:
device- the logical device that owns the semaphores.pWaitInfo- a pointer to aVkSemaphoreWaitInfostructure containing information about the wait condition.timeout- the timeout period in units of nanoseconds.timeoutis adjusted to the closest value allowed by the implementation-dependent timeout accuracy, which may be substantially longer than one nanosecond, and may be longer than the requested period.
-
nvkSignalSemaphoreKHR
public static int nvkSignalSemaphoreKHR(org.lwjgl.vulkan.VkDevice device, long pSignalInfo)Unsafe version of:SignalSemaphoreKHR
-
vkSignalSemaphoreKHR
public static int vkSignalSemaphoreKHR(org.lwjgl.vulkan.VkDevice device, VkSemaphoreSignalInfo pSignalInfo)SeeSignalSemaphore.- Parameters:
device- the logical device that owns the semaphore.pSignalInfo- a pointer to aVkSemaphoreSignalInfostructure containing information about the signal operation.
-
vkGetSemaphoreCounterValueKHR
public static int vkGetSemaphoreCounterValueKHR(org.lwjgl.vulkan.VkDevice device, long semaphore, long[] pValue)Array version of:GetSemaphoreCounterValueKHR
-
-