pub unsafe fn acquire_next_image(
device: VkHandleRef<'_, VkDevice>,
swapchain: VkHandleRefMut<'_, VkSwapchainKHR>,
timeout: u64,
semaphore: Option<VkHandleRefMut<'_, VkSemaphore>>,
fence: Option<VkHandleRefMut<'_, VkFence>>,
) -> Result<u32>Expand description
ยงSafety
swapchain, semaphore and fence must be created from the same device.