vkAcquireImageOHOS(3)
Name
vkAcquireImageOHOS - Obtain the ownership of a swapchain image, and push the external Fence into the VkSemaphore object and the VkFence object
C Specification
To obtain the ownership of a swapchain image, call:
// Provided by VK_OHOS_native_buffer
VkResult vkAcquireImageOHOS(
VkDevice device,
VkImage image,
int32_t nativeFenceFd,
VkSemaphore semaphore,
VkFence fence);
Parameters
-
deviceis a validVkDeviceobject used to create the swapchain image. -
imageis the target image. -
nativeFenceFdis a file descriptor of the native fence. -
semaphoreis VK_NULL_HANDLE or a VkSemaphore that will be signaled when the nativeFenceFd is signaled. -
fenceis VK_NULL_HANDLE or VkFence that will be signaled when the nativeFenceFd is signaled.
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.