Class KHRExternalFenceWin32
- Name String
VK_KHR_external_fence_win32- Extension Type
- Device extension
- Registered Extension Number
- 115
- Revision
- 1
- Extension and Version Dependencies
VK_KHR_external_fence- Contact
- Jesse Hall critsec
Other Extension Metadata
- Last Modified Date
- 2017-05-08
- IP Status
- No known IP claims.
- Contributors
- Jesse Hall, Google
- James Jones, NVIDIA
- Jeff Juliano, NVIDIA
- Cass Everitt, Oculus
- Contributors to
VK_KHR_external_semaphore_win32
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version.static final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnvkGetFenceWin32HandleKHR(org.lwjgl.vulkan.VkDevice device, long pGetWin32HandleInfo, long pHandle) Unsafe version of:GetFenceWin32HandleKHRstatic intnvkImportFenceWin32HandleKHR(org.lwjgl.vulkan.VkDevice device, long pImportFenceWin32HandleInfo) Unsafe version of:ImportFenceWin32HandleKHRstatic intvkGetFenceWin32HandleKHR(org.lwjgl.vulkan.VkDevice device, VkFenceGetWin32HandleInfoKHR pGetWin32HandleInfo, org.lwjgl.PointerBuffer pHandle) Get a Windows HANDLE for a fence.static intvkImportFenceWin32HandleKHR(org.lwjgl.vulkan.VkDevice device, VkImportFenceWin32HandleInfoKHR pImportFenceWin32HandleInfo) Import a fence from a Windows HANDLE.
-
Field Details
-
VK_KHR_EXTERNAL_FENCE_WIN32_SPEC_VERSION
public static final int VK_KHR_EXTERNAL_FENCE_WIN32_SPEC_VERSIONThe extension specification version.- See Also:
-
VK_KHR_EXTERNAL_FENCE_WIN32_EXTENSION_NAME
The extension name.- See Also:
-
VK_STRUCTURE_TYPE_IMPORT_FENCE_WIN32_HANDLE_INFO_KHR
public static final int VK_STRUCTURE_TYPE_IMPORT_FENCE_WIN32_HANDLE_INFO_KHRExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_EXPORT_FENCE_WIN32_HANDLE_INFO_KHR
public static final int VK_STRUCTURE_TYPE_EXPORT_FENCE_WIN32_HANDLE_INFO_KHRExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_FENCE_GET_WIN32_HANDLE_INFO_KHR
public static final int VK_STRUCTURE_TYPE_FENCE_GET_WIN32_HANDLE_INFO_KHRExtendsVkStructureType.Enum values:
- See Also:
-
-
Method Details
-
nvkImportFenceWin32HandleKHR
public static int nvkImportFenceWin32HandleKHR(org.lwjgl.vulkan.VkDevice device, long pImportFenceWin32HandleInfo) Unsafe version of:ImportFenceWin32HandleKHR -
vkImportFenceWin32HandleKHR
public static int vkImportFenceWin32HandleKHR(org.lwjgl.vulkan.VkDevice device, VkImportFenceWin32HandleInfoKHR pImportFenceWin32HandleInfo) Import a fence from a Windows HANDLE.C Specification
To import a fence payload from a Windows handle, call:
VkResult vkImportFenceWin32HandleKHR( VkDevice device, const VkImportFenceWin32HandleInfoKHR* pImportFenceWin32HandleInfo);Description
Importing a fence 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 fence 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
fencemust not be associated with any queue command that has not yet completed execution on that queue
Valid Usage (Implicit)
devicemust be a validVkDevicehandlepImportFenceWin32HandleInfomust be a valid pointer to a validVkImportFenceWin32HandleInfoKHRstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
device- the logical device that created the fence.pImportFenceWin32HandleInfo- a pointer to aVkImportFenceWin32HandleInfoKHRstructure specifying the fence and import parameters.
-
nvkGetFenceWin32HandleKHR
public static int nvkGetFenceWin32HandleKHR(org.lwjgl.vulkan.VkDevice device, long pGetWin32HandleInfo, long pHandle) Unsafe version of:GetFenceWin32HandleKHR -
vkGetFenceWin32HandleKHR
public static int vkGetFenceWin32HandleKHR(org.lwjgl.vulkan.VkDevice device, VkFenceGetWin32HandleInfoKHR pGetWin32HandleInfo, org.lwjgl.PointerBuffer pHandle) Get a Windows HANDLE for a fence.C Specification
To export a Windows handle representing the state of a fence, call:
VkResult vkGetFenceWin32HandleKHR( VkDevice device, const VkFenceGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);Description
For handle types defined as NT handles, the handles returned by
vkGetFenceWin32HandleKHRare 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 fence may have side effects depending on the transference of the specified handle type, as described in Importing Fence Payloads.
Valid Usage (Implicit)
devicemust be a validVkDevicehandlepGetWin32HandleInfomust be a valid pointer to a validVkFenceGetWin32HandleInfoKHRstructurepHandlemust 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 fence being exported.pGetWin32HandleInfo- a pointer to aVkFenceGetWin32HandleInfoKHRstructure containing parameters of the export operation.pHandle- will return the Windows handle representing the fence state.
-