pub fn begin_frame(&mut self) -> Result<()> {
        unsafe {
            self.wait_for_graphics_to_complete()?;
            self.command_pool.reset()?;
        }
        self.command_buffers.clear();
        Ok(())
    }
/// Begin the frame's rendering operations.
///
/// Blocks until the previous render with this frame has finished.
/// Resets the command pool used by this frame.
Begin the frame's rendering operations.
Blocks until the previous render with this frame has finished.
Resets the command pool used by this frame.
Begin the frame ' s rendering operations . Blocks until the previous render with this frame has finished . Resets the command pool used by this frame .
pub fn begin_frame(&mut self) -> Result<()> {
        unsafe {
            self.wait_for_graphics_to_complete()?;
            self.command_pool.reset()?;
        }
        self.command_buffers.clear();
        Ok(())
    }
pub fn begin_frame ( & mut self ) -> Result < ( ) > { unsafe { self . wait_for_graphics_to_complete ( ) ? ; self . command_pool . reset ( ) ? ; } self . command_buffers . clear ( ) ; Ok ( ( ) ) }
Begin the frame's rendering operations.
Begin the frame ' s rendering operations .
&mut self