getSemaphoreZirconHandleFUCHSIA :: MonadIO io=> Devicedeviceis the logical device that created the semaphore being exported.devicemust be a valid Device handle-> SemaphoreGetZirconHandleInfoFUCHSIApGetZirconHandleInfois a pointer to a SemaphoreGetZirconHandleInfoFUCHSIA structure containing parameters of the export operation.pGetZirconHandleInfomust be a valid pointer to a valid SemaphoreGetZirconHandleInfoFUCHSIA structure-> io ("zirconHandle"
::: Zx_handle_t)
vkGetSemaphoreZirconHandleFUCHSIA - Get a Zircon event handle for a semaphore
Description
Each call to getSemaphoreZirconHandleFUCHSIA must create a Zircon event handle and transfer ownership of it to the application. To avoid leaking resources, the application must release ownership of the Zircon event handle when it is no longer needed.
Ownership can be released in many ways. For example, the application can call zx_handle_close() on the file descriptor, or transfer ownership back to Vulkan by using the file descriptor to import a semaphore payload.
Exporting a Zircon event handle from a semaphore may have side effects depending on the transference of the specified handle type, as described in Importing Semaphore State.
Return Codes
See Also
VK_FUCHSIA_external_semaphore, Device, SemaphoreGetZirconHandleInfoFUCHSIA