pub fn queue_present(
    &self, image_index: usize, presentation_queue: vk::Queue, wait_semaphores: &[vk::Semaphore],
  ) -> SarektResult<()> {
    let swapchains = [self.swapchain_and_extension.swapchain];
    let image_indices = [image_index as u32];
    let present_info = vk::PresentInfoKHR::builder()
      .wait_semaphores(wait_semaphores)
      .swapchains(&swapchains)
      .image_indices(&image_indices)
      .build();
    unsafe {
      self
        .swapchain_and_extension
        .swapchain_functions
        .queue_present(presentation_queue, &present_info)?;
    }

    Ok(())
  }
/// Presents to the swapchain waiting on the device semaphore.
Presents to the swapchain waiting on the device semaphore.
Presents to the swapchain waiting on the device semaphore .
pub fn queue_present(
    &self, image_index: usize, presentation_queue: vk::Queue, wait_semaphores: &[vk::Semaphore],
  ) -> SarektResult<()> {
    let swapchains = [self.swapchain_and_extension.swapchain];
    let image_indices = [image_index as u32];
    let present_info = vk::PresentInfoKHR::builder()
      .wait_semaphores(wait_semaphores)
      .swapchains(&swapchains)
      .image_indices(&image_indices)
      .build();
    unsafe {
      self
        .swapchain_and_extension
        .swapchain_functions
        .queue_present(presentation_queue, &present_info)?;
    }
    Ok(())
  }
pub fn queue_present ( & self , image_index : usize , presentation_queue : vk :: Queue , wait_semaphores : & [ vk :: Semaphore ] , ) -> SarektResult < ( ) > { let swapchains = [ self . swapchain_and_extension . swapchain ] ; let image_indices = [ image_index as u32 ] ; let present_info = vk :: PresentInfoKHR :: builder ( ) . wait_semaphores ( wait_semaphores ) . swapchains ( & swapchains ) . image_indices ( & image_indices ) . build ( ) ; unsafe { self . swapchain_and_extension . swapchain_functions . queue_present ( presentation_queue , & present_info ) ? ; } Ok ( ( ) ) }
Presents to the swapchain waiting on the device semaphore.
Presents to the swapchain waiting on the device semaphore .
&self
image_index
usize
presentation_queue
vk::Queue
wait_semaphores
&[vk::Semaphore]
&self
image_index
usize
presentation_queue
vk::Queue
wait_semaphores
&[vk::Semaphore]