C Specification
To obtain the memoryTypeIndex for the VkMemoryAllocateInfo structure,
call vkGetMemoryZirconHandlePropertiesFUCHSIA
:
// Provided by VK_FUCHSIA_external_memory
VkResult vkGetMemoryZirconHandlePropertiesFUCHSIA(
VkDevice device,
VkExternalMemoryHandleTypeFlagBits handleType,
zx_handle_t zirconHandle,
VkMemoryZirconHandlePropertiesFUCHSIA* pMemoryZirconHandleProperties);
Parameters
-
device
is the VkDevice. -
handleType
is a VkExternalMemoryHandleTypeFlagBits value specifying the type ofzirconHandle
-
zirconHandle
is azx_handle_t
(Zircon) handle to the external resource. -
pMemoryZirconHandleProperties
is a pointer to a VkMemoryZirconHandlePropertiesFUCHSIA structure in which the result will be stored.
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.