pub unsafe fn acquire_next_image_khr(&self, swapchain: SwapchainKhrHandle, timeout: u64,
            semaphore: Option<SemaphoreHandle>, fence: Option<FenceHandle>) -> VdResult<u32> {
        let mut image_index = 0;
        let result = self.proc_addr_loader().khr_swapchain.vkAcquireNextImageKHR(
                self.handle().to_raw(), swapchain.to_raw(), timeout,
                semaphore.map(|s| s.to_raw()).unwrap_or(0),
                fence.map(|f| f.to_raw()).unwrap_or(0), &mut image_index);
        error::check(result, "vkAcquireNextImageKHR", image_index)
    }
/// Retrieves the index of the next available presentable image.
///
/// https://manned.org/vkAcquireNextImageKHR.3
//
// *PFN_vkAcquireNextImageKHR)(VkDevice device, VkSwapchainKHR swapchain,
// uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t*
// pImageIndex);
Retrieves the index of the next available presentable image.


Retrieves the index of the next available presentable image .
pub unsafe fn acquire_next_image_khr(&self, swapchain: SwapchainKhrHandle, timeout: u64,
            semaphore: Option<SemaphoreHandle>, fence: Option<FenceHandle>) -> VdResult<u32> {
        let mut image_index = 0;
        let result = self.proc_addr_loader().khr_swapchain.vkAcquireNextImageKHR(
                self.handle().to_raw(), swapchain.to_raw(), timeout,
                semaphore.map(|s| s.to_raw()).unwrap_or(0),
                fence.map(|f| f.to_raw()).unwrap_or(0), &mut image_index);
        error::check(result, "vkAcquireNextImageKHR", image_index)
    }
pub unsafe fn acquire_next_image_khr ( & self , swapchain : SwapchainKhrHandle , timeout : u64 , semaphore : Option < SemaphoreHandle > , fence : Option < FenceHandle > ) -> VdResult < u32 > { let mut image_index = 0 ; let result = self . proc_addr_loader ( ) . khr_swapchain . vkAcquireNextImageKHR ( self . handle ( ) . to_raw ( ) , swapchain . to_raw ( ) , timeout , semaphore . map ( | s | s . to_raw ( ) ) . unwrap_or ( 0 ) , fence . map ( | f | f . to_raw ( ) ) . unwrap_or ( 0 ) , & mut image_index ) ; error :: check ( result , " " , image_index ) }
Retrieves the index of the next available presentable image.
Retrieves the index of the next available presentable image .
&self
swapchain
SwapchainKhrHandle
timeout
u64
semaphore
Option<SemaphoreHandle>
fence
Option<FenceHandle>
&self
swapchain
SwapchainKhrHandle
timeout
u64
semaphore
Option<SemaphoreHandle>
fence
Option<FenceHandle>