/// Gets the next image in the swapchain to draw to and associates the given
/// semaphore and fence with it.
Gets the next image in the swapchain to draw to and associates the given
semaphore and fence with it.
Gets the next image in the swapchain to draw to and associates the given semaphore and fence with it .
pub fn acquire_next_image(
    &self, timeout: u64, image_available_semaphore: vk::Semaphore, image_available_fence: vk::Fence,
  ) -> SarektResult<(u32, bool)> {
    // TODO(issue#9) OFFSCREEN handle drawing without swapchain.
    unsafe {
      Ok(
        self
          .swapchain_and_extension
          .swapchain_functions
          .acquire_next_image(
            self.swapchain_and_extension.swapchain,
            timeout,
            image_available_semaphore,
            image_available_fence,
          )?,
      )
    }
  }
pub fn acquire_next_image ( & self , timeout : u64 , image_available_semaphore : vk :: Semaphore , image_available_fence : vk :: Fence , ) -> SarektResult < ( u32 , bool ) > { // TODO(issue#9) OFFSCREEN handle drawing without swapchain. unsafe { Ok ( self . swapchain_and_extension . swapchain_functions . acquire_next_image ( self . swapchain_and_extension . swapchain , timeout , image_available_semaphore , image_available_fence , ) ? , ) } }
Gets the next image in the swapchain to draw to and associates the given
semaphore and fence with it.
Gets the next image in the swapchain to draw to and associates the given semaphore and fence with it .
&self
timeout
u64
image_available_semaphore
vk::Semaphore
image_available_fence
vk::Fence