Function Prototype
vkGetMemoryFdPropertiesKHR
Get Properties of External Memory File Descriptors
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);
deviceis the logical device that will be importingfd.handleTypeis a VkExternalMemoryHandleTypeFlagBits value specifying the type of the handlefd.fdis the handle which will be imported.pMemoryFdPropertiesis a pointer to a VkMemoryFdPropertiesKHR structure in which the properties of the handlefdare returned.
Valid Usage
VUID-vkGetMemoryFdPropertiesKHR-fd-00673
fd must point to a valid POSIX file descriptor memory handle
VUID-vkGetMemoryFdPropertiesKHR-handleType-00674
handleType must not be
VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT
Valid Usage (Implicit)
VUID-vkGetMemoryFdPropertiesKHR-device-parameter
device must be a valid VkDevice handle
VUID-vkGetMemoryFdPropertiesKHR-handleType-parameter
handleType must be a valid VkExternalMemoryHandleTypeFlagBits value
VUID-vkGetMemoryFdPropertiesKHR-pMemoryFdProperties-parameter
pMemoryFdProperties must be a valid pointer to a VkMemoryFdPropertiesKHR structure