Class KHRExternalSemaphoreWin32
- java.lang.Object
-
- org.lwjgl.vulkan.KHRExternalSemaphoreWin32
-
public class KHRExternalSemaphoreWin32 extends java.lang.ObjectAn application using external memory may wish to synchronize access to that memory using semaphores. This extension enables an application to export semaphore payload to and import semaphore payload from Windows handles.- Name String
VK_KHR_external_semaphore_win32- Extension Type
- Device extension
- Registered Extension Number
- 79
- Revision
- 1
- Extension and Version Dependencies
- Requires Vulkan 1.0
- Requires
VK_KHR_external_semaphore
- Contact
- James Jones cubanismo
- Last Modified Date
- 2016-10-21
- IP Status
- No known IP claims.
- Contributors
- James Jones, NVIDIA
- Jeff Juliano, NVIDIA
- Carsten Rohde, NVIDIA
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringVK_KHR_EXTERNAL_SEMAPHORE_WIN32_EXTENSION_NAMEThe extension name.static intVK_KHR_EXTERNAL_SEMAPHORE_WIN32_SPEC_VERSIONThe extension specification version.static intVK_STRUCTURE_TYPE_D3D12_FENCE_SUBMIT_INFO_KHR
VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR
VK_STRUCTURE_TYPE_IMPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR
VK_STRUCTURE_TYPE_SEMAPHORE_GET_WIN32_HANDLE_INFO_KHRExtendsVkStructureType.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intnvkGetSemaphoreWin32HandleKHR(VkDevice device, long pGetWin32HandleInfo, long pHandle)Unsafe version of:GetSemaphoreWin32HandleKHRstatic intnvkImportSemaphoreWin32HandleKHR(VkDevice device, long pImportSemaphoreWin32HandleInfo)Unsafe version of:ImportSemaphoreWin32HandleKHRstatic intvkGetSemaphoreWin32HandleKHR(VkDevice device, VkSemaphoreGetWin32HandleInfoKHR pGetWin32HandleInfo, org.lwjgl.PointerBuffer pHandle)Get a Windows HANDLE for a semaphore.static intvkImportSemaphoreWin32HandleKHR(VkDevice device, VkImportSemaphoreWin32HandleInfoKHR pImportSemaphoreWin32HandleInfo)Import a semaphore from a Windows HANDLE.
-
-
-
Field Detail
-
VK_KHR_EXTERNAL_SEMAPHORE_WIN32_SPEC_VERSION
The extension specification version.
-
VK_KHR_EXTERNAL_SEMAPHORE_WIN32_EXTENSION_NAME
The extension name.
-
-
Method Detail
-
nvkImportSemaphoreWin32HandleKHR
public static int nvkImportSemaphoreWin32HandleKHR(VkDevice device, long pImportSemaphoreWin32HandleInfo)
Unsafe version of:ImportSemaphoreWin32HandleKHR
-
vkImportSemaphoreWin32HandleKHR
public static int vkImportSemaphoreWin32HandleKHR(VkDevice device, VkImportSemaphoreWin32HandleInfoKHR pImportSemaphoreWin32HandleInfo)
Import a semaphore from a Windows HANDLE.C Specification
To import a semaphore payload from a Windows handle, call:
VkResult vkImportSemaphoreWin32HandleKHR( VkDevice device, const VkImportSemaphoreWin32HandleInfoKHR* pImportSemaphoreWin32HandleInfo);Description
Importing a semaphore payload from Windows handles does not transfer ownership of the handle to the Vulkan implementation. For handle types defined as NT handles, the application must release ownership using the
CloseHandlesystem call when the handle is no longer needed.Applications can import the same semaphore payload into multiple instances of Vulkan, into the same instance from which it was exported, and multiple times into a given Vulkan instance.
Valid Usage (Implicit)
devicemust be a validVkDevicehandlepImportSemaphoreWin32HandleInfomust be a valid pointer to a validVkImportSemaphoreWin32HandleInfoKHRstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
device- the logical device that created the semaphore.pImportSemaphoreWin32HandleInfo- points to aVkImportSemaphoreWin32HandleInfoKHRstructure specifying the semaphore and import parameters.
-
nvkGetSemaphoreWin32HandleKHR
public static int nvkGetSemaphoreWin32HandleKHR(VkDevice device, long pGetWin32HandleInfo, long pHandle)
Unsafe version of:GetSemaphoreWin32HandleKHR
-
vkGetSemaphoreWin32HandleKHR
public static int vkGetSemaphoreWin32HandleKHR(VkDevice device, VkSemaphoreGetWin32HandleInfoKHR pGetWin32HandleInfo, org.lwjgl.PointerBuffer pHandle)
Get a Windows HANDLE for a semaphore.C Specification
To export a Windows handle representing the payload of a semaphore, call:
VkResult vkGetSemaphoreWin32HandleKHR( VkDevice device, const VkSemaphoreGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);Description
For handle types defined as NT handles, the handles returned by
vkGetSemaphoreWin32HandleKHRare owned by the application. To avoid leaking resources, the application must release ownership of them using theCloseHandlesystem call when they are no longer needed.Exporting a Windows handle from a semaphore may have side effects depending on the transference of the specified handle type, as described in Importing Semaphore Payloads.
Valid Usage (Implicit)
devicemust be a validVkDevicehandlepGetWin32HandleInfomust be a valid pointer to a validVkSemaphoreGetWin32HandleInfoKHRstructurepHandlemust be a valid pointer to aHANDLEvalue
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
device- the logical device that created the semaphore being exported.pGetWin32HandleInfo- a pointer to an instance of theVkSemaphoreGetWin32HandleInfoKHRstructure containing parameters of the export operation.pHandle- will return the Windows handle representing the semaphore state.
-
-