Function Prototype
vkGetMemoryZirconHandleFUCHSIA
Get a Zircon handle for an external memory object
To export device memory as a Zircon handle that can be used by another instance, device, or process, retrieve the handle to the VkDeviceMemory using the command:
VkResult vkGetMemoryZirconHandleFUCHSIA(
VkDevice device,
const VkMemoryGetZirconHandleInfoFUCHSIA* pGetZirconHandleInfo,
zx_handle_t* pZirconHandle);
pub fn get_memory_zircon_handle_fuchsia(
device: vk::Device,
p_get_zircon_handle_info: *const vk::MemoryGetZirconHandleInfoFUCHSIA,
p_zircon_handle: *mut zx_handle_t,
) -> vk::Result;
deviceis the VkDevice.pGetZirconHandleInfois a pointer to a VkMemoryGetZirconHandleInfoFUCHSIA structure.pZirconHandleis a pointer to azx_handle_twhich holds the resulting Zircon handle.
Valid Usage (Implicit)
VUID-vkGetMemoryZirconHandleFUCHSIA-device-parameter
device must be a valid VkDevice handle
VUID-vkGetMemoryZirconHandleFUCHSIA-pGetZirconHandleInfo-parameter
pGetZirconHandleInfo must be a valid pointer to a valid VkMemoryGetZirconHandleInfoFUCHSIA structure
VUID-vkGetMemoryZirconHandleFUCHSIA-pZirconHandle-parameter
pZirconHandle must be a valid pointer to a zx_handle_t value
Type
Function Prototype
Return Values
VK_SUCCESS
VK_ERROR_TOO_MANY_OBJECTS
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_UNKNOWN
VK_ERROR_VALIDATION_FAILED