Function Prototype
vkGetMemoryMetalHandlePropertiesEXT
Get Properties of External Memory Metal Handles
Metal 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 vkGetMemoryMetalHandlePropertiesEXT(
VkDevice device,
VkExternalMemoryHandleTypeFlagBits handleType,
const void* pHandle,
VkMemoryMetalHandlePropertiesEXT* pMemoryMetalHandleProperties);
deviceis the logical device that will be importingpHandle.handleTypeis a VkExternalMemoryHandleTypeFlagBits value specifying the type of the handlepHandle.pHandleis the handle which will be imported.pMemoryMetalHandlePropertiesis a pointer to a VkMemoryMetalHandlePropertiesEXT structure in which properties ofpHandleare returned.
Valid Usage
VUID-vkGetMemoryMetalHandlePropertiesEXT-handle-10416
pHandle must point to a valid id
VUID-vkGetMemoryMetalHandlePropertiesEXT-handleType-10417
handleType must be
VK_EXTERNAL_MEMORY_HANDLE_TYPE_MTLBUFFER_BIT_EXT,
VK_EXTERNAL_MEMORY_HANDLE_TYPE_MTLTEXTURE_BIT_EXT or
VK_EXTERNAL_MEMORY_HANDLE_TYPE_MTLHEAP_BIT_EXT
Valid Usage (Implicit)
VUID-vkGetMemoryMetalHandlePropertiesEXT-device-parameter
device must be a valid VkDevice handle
VUID-vkGetMemoryMetalHandlePropertiesEXT-handleType-parameter
handleType must be a valid VkExternalMemoryHandleTypeFlagBits value
VUID-vkGetMemoryMetalHandlePropertiesEXT-pHandle-parameter
pHandle must be a pointer value
VUID-vkGetMemoryMetalHandlePropertiesEXT-pMemoryMetalHandleProperties-parameter
pMemoryMetalHandleProperties must be a valid pointer to a VkMemoryMetalHandlePropertiesEXT structure