public class KHRExternalMemoryFd
extends java.lang.Object
VK_KHR_external_memory_fdVK_KHR_external_memory| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VK_KHR_EXTERNAL_MEMORY_FD_EXTENSION_NAME
The extension name.
|
static int |
VK_KHR_EXTERNAL_MEMORY_FD_SPEC_VERSION
The extension specification version.
|
static int |
VK_STRUCTURE_TYPE_IMPORT_MEMORY_FD_INFO_KHR
Extends
VkStructureType. |
static int |
VK_STRUCTURE_TYPE_MEMORY_FD_PROPERTIES_KHR
Extends
VkStructureType. |
static int |
VK_STRUCTURE_TYPE_MEMORY_GET_FD_INFO_KHR
Extends
VkStructureType. |
| Modifier and Type | Method and Description |
|---|---|
static int |
nvkGetMemoryFdKHR(org.lwjgl.vulkan.VkDevice device,
long pGetFdInfo,
long pFd)
Unsafe version of:
GetMemoryFdKHR |
static int |
nvkGetMemoryFdPropertiesKHR(org.lwjgl.vulkan.VkDevice device,
int handleType,
int fd,
long pMemoryFdProperties)
Unsafe version of:
GetMemoryFdPropertiesKHR |
static int |
vkGetMemoryFdKHR(org.lwjgl.vulkan.VkDevice device,
VkMemoryGetFdInfoKHR pGetFdInfo,
int[] pFd)
Array version of:
GetMemoryFdKHR |
static int |
vkGetMemoryFdKHR(org.lwjgl.vulkan.VkDevice device,
VkMemoryGetFdInfoKHR pGetFdInfo,
java.nio.IntBuffer pFd)
Get a POSIX file descriptor for a memory object.
|
static int |
vkGetMemoryFdPropertiesKHR(org.lwjgl.vulkan.VkDevice device,
int handleType,
int fd,
VkMemoryFdPropertiesKHR pMemoryFdProperties)
Get Properties of External Memory File Descriptors.
|
public static final int VK_KHR_EXTERNAL_MEMORY_FD_SPEC_VERSION
public static final java.lang.String VK_KHR_EXTERNAL_MEMORY_FD_EXTENSION_NAME
public static final int VK_STRUCTURE_TYPE_IMPORT_MEMORY_FD_INFO_KHR
VkStructureType.
public static final int VK_STRUCTURE_TYPE_MEMORY_FD_PROPERTIES_KHR
VkStructureType.
public static final int VK_STRUCTURE_TYPE_MEMORY_GET_FD_INFO_KHR
VkStructureType.
public static int nvkGetMemoryFdKHR(org.lwjgl.vulkan.VkDevice device,
long pGetFdInfo,
long pFd)
GetMemoryFdKHRpublic static int vkGetMemoryFdKHR(org.lwjgl.vulkan.VkDevice device,
VkMemoryGetFdInfoKHR pGetFdInfo,
java.nio.IntBuffer pFd)
To export a POSIX file descriptor representing the underlying resources of a Vulkan device memory object, call:
VkResult vkGetMemoryFdKHR(
VkDevice device,
const VkMemoryGetFdInfoKHR* pGetFdInfo,
int* pFd);
Each call to vkGetMemoryFdKHR must create a new file descriptor and transfer ownership of it to the application. To avoid leaking resources, the application must release ownership of the file descriptor using the close system call when it is no longer needed, or by importing a Vulkan memory object from it. Where supported by the operating system, the implementation must set the file descriptor to be closed automatically when an execve system call is made.
device must be a valid VkDevice handlepGetFdInfo must be a valid pointer to a valid VkMemoryGetFdInfoKHR structurepFd must be a valid pointer to an int valuedevice - the logical device that created the device memory being exported.pGetFdInfo - a pointer to a VkMemoryGetFdInfoKHR structure containing parameters of the export operation.pFd - will return a file descriptor representing the underlying resources of the device memory object.public static int nvkGetMemoryFdPropertiesKHR(org.lwjgl.vulkan.VkDevice device,
int handleType,
int fd,
long pMemoryFdProperties)
GetMemoryFdPropertiesKHRpublic static int vkGetMemoryFdPropertiesKHR(org.lwjgl.vulkan.VkDevice device,
int handleType,
int fd,
VkMemoryFdPropertiesKHR pMemoryFdProperties)
POSIX file descriptor 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 vkGetMemoryFdPropertiesKHR(
VkDevice device,
VkExternalMemoryHandleTypeFlagBits handleType,
int fd,
VkMemoryFdPropertiesKHR* pMemoryFdProperties);
fd must be an external memory handle created outside of the Vulkan API.handleType must not be EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT_KHR.device must be a valid VkDevice handlehandleType must be a valid VkExternalMemoryHandleTypeFlagBits valuepMemoryFdProperties must be a valid pointer to a VkMemoryFdPropertiesKHR structuredevice - the logical device that will be importing fd.handleType - the type of the handle fd.fd - the handle which will be imported.pMemoryFdProperties - a pointer to a VkMemoryFdPropertiesKHR structure in which the properties of the handle fd are returned.public static int vkGetMemoryFdKHR(org.lwjgl.vulkan.VkDevice device,
VkMemoryGetFdInfoKHR pGetFdInfo,
int[] pFd)
GetMemoryFdKHRCopyright LWJGL. All Rights Reserved. License terms.