pub unsafe fn present<'b>(
        self,
        queue: &mut impl gfx_hal::queue::RawCommandQueue<B>,
        wait: impl IntoIterator<Item = &'b (impl std::borrow::Borrow<B::Semaphore> + 'b)>,
    ) -> Result<(), failure::Error>
    where
        'a: 'b,
    {
        queue
            .present(
                self.targets
                    .iter()
                    .map(|(target, index)| (&target.swapchain, *index)),
                wait,
            )
            .map_err(|()| failure::format_err!("Suboptimal or out of date, or what?"))
    }
/// Present images by the queue.
///
/// # TODO
///
/// Use specific presentation error type.
Present images by the queue.
Present images by the queue .
pub unsafe fn present<'b>(
        self,
        queue: &mut impl gfx_hal::queue::RawCommandQueue<B>,
        wait: impl IntoIterator<Item = &'b (impl std::borrow::Borrow<B::Semaphore> + 'b)>,
    ) -> Result<(), failure::Error>
    where
        'a: 'b,
    {
        queue
            .present(
                self.targets
                    .iter()
                    .map(|(target, index)| (&target.swapchain, *index)),
                wait,
            )
            .map_err(|()| failure::format_err!("Suboptimal or out of date, or what?"))
    }
pub unsafe fn present < ' b > ( self , queue : & mut impl gfx_hal :: queue :: RawCommandQueue < B > , wait : impl IntoIterator < Item = & ' b ( impl std :: borrow :: Borrow < B :: Semaphore > + ' b ) > , ) -> Result < ( ) , failure :: Error > where ' a : ' b , { queue . present ( self . targets . iter ( ) . map ( | ( target , index ) | ( & target . swapchain , * index ) ) , wait , ) . map_err ( | ( ) | failure :: format_err ! ( " " ) ) }
Present images by the queue.
Present images by the queue .
self
queue
&mut impl gfx_hal::queue::RawCommandQueue<B>
wait
impl IntoIterator<Item = &'b (impl std::borrow::Borrow<B::Semaphore> + 'b)>
self
queue
&mut impl gfx_hal::queue::RawCommandQueue<B>
wait
impl IntoIterator<Item = &'b (impl std::borrow::Borrow<B::Semaphore> + 'b)>
todo
Use specific presentation error type.
Use specific presentation error type .