public class KHRExternalMemoryWin32
extends java.lang.Object
VK_KHR_external_memory_win32VK_KHR_external_memory| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VK_KHR_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME
The extension name.
|
static int |
VK_KHR_EXTERNAL_MEMORY_WIN32_SPEC_VERSION
The extension specification version.
|
static int |
VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_KHR
Extends
VkStructureType. |
static int |
VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_KHR
Extends
VkStructureType. |
static int |
VK_STRUCTURE_TYPE_MEMORY_GET_WIN32_HANDLE_INFO_KHR
Extends
VkStructureType. |
static int |
VK_STRUCTURE_TYPE_MEMORY_WIN32_HANDLE_PROPERTIES_KHR
Extends
VkStructureType. |
| Modifier and Type | Method and Description |
|---|---|
static int |
nvkGetMemoryWin32HandleKHR(org.lwjgl.vulkan.VkDevice device,
long pGetWin32HandleInfo,
long pHandle)
Unsafe version of:
GetMemoryWin32HandleKHR |
static int |
nvkGetMemoryWin32HandlePropertiesKHR(org.lwjgl.vulkan.VkDevice device,
int handleType,
long handle,
long pMemoryWin32HandleProperties)
Unsafe version of:
GetMemoryWin32HandlePropertiesKHR |
static int |
vkGetMemoryWin32HandleKHR(org.lwjgl.vulkan.VkDevice device,
VkMemoryGetWin32HandleInfoKHR pGetWin32HandleInfo,
org.lwjgl.PointerBuffer pHandle)
Get a Windows HANDLE for a memory object.
|
static int |
vkGetMemoryWin32HandlePropertiesKHR(org.lwjgl.vulkan.VkDevice device,
int handleType,
long handle,
VkMemoryWin32HandlePropertiesKHR pMemoryWin32HandleProperties)
Get Properties of External Memory Win32 Handles.
|
public static final int VK_KHR_EXTERNAL_MEMORY_WIN32_SPEC_VERSION
public static final java.lang.String VK_KHR_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME
public static final int VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_KHR
VkStructureType.
public static final int VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_KHR
VkStructureType.
public static final int VK_STRUCTURE_TYPE_MEMORY_WIN32_HANDLE_PROPERTIES_KHR
VkStructureType.
public static final int VK_STRUCTURE_TYPE_MEMORY_GET_WIN32_HANDLE_INFO_KHR
VkStructureType.
public static int nvkGetMemoryWin32HandleKHR(org.lwjgl.vulkan.VkDevice device,
long pGetWin32HandleInfo,
long pHandle)
GetMemoryWin32HandleKHRpublic static int vkGetMemoryWin32HandleKHR(org.lwjgl.vulkan.VkDevice device,
VkMemoryGetWin32HandleInfoKHR pGetWin32HandleInfo,
org.lwjgl.PointerBuffer pHandle)
To export a Windows handle representing the underlying resources of a Vulkan device memory object, call:
VkResult vkGetMemoryWin32HandleKHR(
VkDevice device,
const VkMemoryGetWin32HandleInfoKHR* pGetWin32HandleInfo,
HANDLE* pHandle);
For handle types defined as NT handles, the handles returned by vkGetMemoryWin32HandleKHR 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.
device must be a valid VkDevice handlepGetWin32HandleInfo must be a valid pointer to a valid VkMemoryGetWin32HandleInfoKHR structurepHandle must be a valid pointer to a HANDLE valuedevice - the logical device that created the device memory being exported.pGetWin32HandleInfo - a pointer to a VkMemoryGetWin32HandleInfoKHR structure containing parameters of the export operation.pHandle - will return the Windows handle representing the underlying resources of the device memory object.public static int nvkGetMemoryWin32HandlePropertiesKHR(org.lwjgl.vulkan.VkDevice device,
int handleType,
long handle,
long pMemoryWin32HandleProperties)
GetMemoryWin32HandlePropertiesKHRpublic static int vkGetMemoryWin32HandlePropertiesKHR(org.lwjgl.vulkan.VkDevice device,
int handleType,
long handle,
VkMemoryWin32HandlePropertiesKHR pMemoryWin32HandleProperties)
Windows memory handles compatible with Vulkan may also be created by non-Vulkan APIs using methods beyond the scope of this specification. To determine the correct parameters to use when importing such handles, call:
VkResult vkGetMemoryWin32HandlePropertiesKHR(
VkDevice device,
VkExternalMemoryHandleTypeFlagBits handleType,
HANDLE handle,
VkMemoryWin32HandlePropertiesKHR* pMemoryWin32HandleProperties);
handle must be an external memory handle created outside of the Vulkan API.handleType must not be one of the handle types defined as opaque.device must be a valid VkDevice handlehandleType must be a valid VkExternalMemoryHandleTypeFlagBits valuepMemoryWin32HandleProperties must be a valid pointer to a VkMemoryWin32HandlePropertiesKHR structuredevice - the logical device that will be importing handle.handleType - the type of the handle handle.handle - the handle which will be imported.pMemoryWin32HandleProperties - will return properties of handle.Copyright LWJGL. All Rights Reserved. License terms.