pub fn to_frame(
        &self,
        app: &App,
        frame: &Frame,
    ) -> Result<(), draw::backend::vulkano::DrawError> {
        let window = app
            .window(self.window_id)
            .expect("no window to draw to for `app::Draw`'s window_id");
        assert_eq!(
            self.window_id,
            frame.window_id(),
            "attempted to draw content intended for window {:?} in a frame \
             associated with window {:?}",
            self.window_id,
            frame.window_id(),
        );
        let dpi_factor = window.hidpi_factor();
        let mut renderer = self.renderer.borrow_mut();
        renderer.draw_to_frame(&self.draw, dpi_factor, frame, self.depth_format)
    }
/// Draw the current state of the inner mesh to the given frame.
Draw the current state of the inner mesh to the given frame.
Draw the current state of the inner mesh to the given frame .
pub fn to_frame(
        &self,
        app: &App,
        frame: &Frame,
    ) -> Result<(), draw::backend::vulkano::DrawError> {
        let window = app
            .window(self.window_id)
            .expect("no window to draw to for `app::Draw`'s window_id");
        assert_eq!(
            self.window_id,
            frame.window_id(),
            "attempted to draw content intended for window {:?} in a frame \
             associated with window {:?}",
            self.window_id,
            frame.window_id(),
        );
        let dpi_factor = window.hidpi_factor();
        let mut renderer = self.renderer.borrow_mut();
        renderer.draw_to_frame(&self.draw, dpi_factor, frame, self.depth_format)
    }
pub fn to_frame ( & self , app : & App , frame : & Frame , ) -> Result < ( ) , draw :: backend :: vulkano :: DrawError > { let window = app . window ( self . window_id ) . expect ( " " ) ; assert_eq ! ( self window_id frame window_id ( ) " \
 " self window_id frame window_id ( ) ) ; let dpi_factor = window . hidpi_factor ( ) ; let mut renderer = self . renderer . borrow_mut ( ) ; renderer . draw_to_frame ( & self . draw , dpi_factor , frame , self . depth_format ) }
Draw the current state of the inner mesh to the given frame.
Draw the current state of the inner mesh to the given frame .
&self
app
&App
frame
&Frame
&self
app
&App
frame
&Frame