pub fn build(self) -> Result<Renderer> {
        let Backend(device, mut factory, main_target, window) =
            init_backend(self.winit_builder.clone(), &self.events, &self.config)?;

        let cached_size = window
            .get_inner_size()
            .expect("Unable to fetch window size, as the window went away!");
        let encoder = factory.create_command_buffer().into();
        Ok(Renderer {
            device,
            encoder,
            factory,
            main_target,
            window,
            events: self.events,
            multisampling: self.config.multisampling,
            cached_size,
        })
    }
/// Consumes the builder and creates the new `Renderer`.
Consumes the builder and creates the new `Renderer`.
Consumes the builder and creates the new ` Renderer ` .
pub fn build(self) -> Result<Renderer> {
        let Backend(device, mut factory, main_target, window) =
            init_backend(self.winit_builder.clone(), &self.events, &self.config)?;
        let cached_size = window
            .get_inner_size()
            .expect("Unable to fetch window size, as the window went away!");
        let encoder = factory.create_command_buffer().into();
        Ok(Renderer {
            device,
            encoder,
            factory,
            main_target,
            window,
            events: self.events,
            multisampling: self.config.multisampling,
            cached_size,
        })
    }
pub fn build ( self ) -> Result < Renderer > { let Backend ( device , mut factory , main_target , window ) = init_backend ( self . winit_builder . clone ( ) , & self . events , & self . config ) ? ; let cached_size = window . get_inner_size ( ) . expect ( " " ) ; let encoder = factory . create_command_buffer ( ) . into ( ) ; Ok ( Renderer { device , encoder , factory , main_target , window , events : self . events , multisampling : self . config . multisampling , cached_size , } ) }
Consumes the builder and creates the new `Renderer`.
Consumes the builder and creates the new ` Renderer ` .
self
self