public class KHRExternalSemaphoreWin32
extends java.lang.Object
VK_KHR_external_semaphore_win32VK_KHR_external_semaphore| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VK_KHR_EXTERNAL_SEMAPHORE_WIN32_EXTENSION_NAME
The extension name.
|
static int |
VK_KHR_EXTERNAL_SEMAPHORE_WIN32_SPEC_VERSION
The extension specification version.
|
static int |
VK_STRUCTURE_TYPE_D3D12_FENCE_SUBMIT_INFO_KHR
Extends
VkStructureType. |
static int |
VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR
Extends
VkStructureType. |
static int |
VK_STRUCTURE_TYPE_IMPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR
Extends
VkStructureType. |
static int |
VK_STRUCTURE_TYPE_SEMAPHORE_GET_WIN32_HANDLE_INFO_KHR
Extends
VkStructureType. |
| Modifier and Type | Method and Description |
|---|---|
static int |
nvkGetSemaphoreWin32HandleKHR(org.lwjgl.vulkan.VkDevice device,
long pGetWin32HandleInfo,
long pHandle)
Unsafe version of:
GetSemaphoreWin32HandleKHR |
static int |
nvkImportSemaphoreWin32HandleKHR(org.lwjgl.vulkan.VkDevice device,
long pImportSemaphoreWin32HandleInfo)
Unsafe version of:
ImportSemaphoreWin32HandleKHR |
static int |
vkGetSemaphoreWin32HandleKHR(org.lwjgl.vulkan.VkDevice device,
VkSemaphoreGetWin32HandleInfoKHR pGetWin32HandleInfo,
org.lwjgl.PointerBuffer pHandle)
Get a Windows HANDLE for a semaphore.
|
static int |
vkImportSemaphoreWin32HandleKHR(org.lwjgl.vulkan.VkDevice device,
VkImportSemaphoreWin32HandleInfoKHR pImportSemaphoreWin32HandleInfo)
Import a semaphore from a Windows HANDLE.
|
public static final int VK_KHR_EXTERNAL_SEMAPHORE_WIN32_SPEC_VERSION
public static final java.lang.String VK_KHR_EXTERNAL_SEMAPHORE_WIN32_EXTENSION_NAME
public static final int VK_STRUCTURE_TYPE_IMPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR
VkStructureType.
public static final int VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR
VkStructureType.
public static final int VK_STRUCTURE_TYPE_D3D12_FENCE_SUBMIT_INFO_KHR
VkStructureType.
public static final int VK_STRUCTURE_TYPE_SEMAPHORE_GET_WIN32_HANDLE_INFO_KHR
VkStructureType.
public static int nvkImportSemaphoreWin32HandleKHR(org.lwjgl.vulkan.VkDevice device,
long pImportSemaphoreWin32HandleInfo)
ImportSemaphoreWin32HandleKHRpublic static int vkImportSemaphoreWin32HandleKHR(org.lwjgl.vulkan.VkDevice device,
VkImportSemaphoreWin32HandleInfoKHR pImportSemaphoreWin32HandleInfo)
To import a semaphore payload from a Windows handle, call:
VkResult vkImportSemaphoreWin32HandleKHR(
VkDevice device,
const VkImportSemaphoreWin32HandleInfoKHR* pImportSemaphoreWin32HandleInfo);
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 CloseHandle system 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.
device must be a valid VkDevice handlepImportSemaphoreWin32HandleInfo must be a valid pointer to a valid VkImportSemaphoreWin32HandleInfoKHR structuredevice - the logical device that created the semaphore.pImportSemaphoreWin32HandleInfo - a pointer to a VkImportSemaphoreWin32HandleInfoKHR structure specifying the semaphore and import parameters.public static int nvkGetSemaphoreWin32HandleKHR(org.lwjgl.vulkan.VkDevice device,
long pGetWin32HandleInfo,
long pHandle)
GetSemaphoreWin32HandleKHRpublic static int vkGetSemaphoreWin32HandleKHR(org.lwjgl.vulkan.VkDevice device,
VkSemaphoreGetWin32HandleInfoKHR pGetWin32HandleInfo,
org.lwjgl.PointerBuffer pHandle)
To export a Windows handle representing the payload of a semaphore, call:
VkResult vkGetSemaphoreWin32HandleKHR(
VkDevice device,
const VkSemaphoreGetWin32HandleInfoKHR* pGetWin32HandleInfo,
HANDLE* pHandle);
For handle types defined as NT handles, the handles returned by vkGetSemaphoreWin32HandleKHR are owned by the application. To avoid leaking resources, the application must release ownership of them using the CloseHandle system 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.
device must be a valid VkDevice handlepGetWin32HandleInfo must be a valid pointer to a valid VkSemaphoreGetWin32HandleInfoKHR structurepHandle must be a valid pointer to a HANDLE valuedevice - the logical device that created the semaphore being exported.pGetWin32HandleInfo - a pointer to a VkSemaphoreGetWin32HandleInfoKHR structure containing parameters of the export operation.pHandle - will return the Windows handle representing the semaphore state.Copyright LWJGL. All Rights Reserved. License terms.