pub fn build<B>(pipe: B, config: Option<DisplayConfig>) -> Result<Self>
    where
        B: PipelineBuild<Pipeline = P>,
    {
        let mut renderer = {
            let mut renderer = Renderer::build();

            if let Some(config) = config.to_owned() {
                renderer.with_config(config);
            }
            let renderer = renderer.build()?;

            renderer
        };

        match renderer.create_pipe(pipe) {
            Ok(pipe) => Ok(Self::new(pipe, renderer)),
            Err(err) => {
                error!("Failed creating pipeline: {}", err);
                Err(err)
            }
        }
    }
/// Build a new `RenderSystem` from the given pipeline builder and config
Build a new `RenderSystem` from the given pipeline builder and config
Build a new ` RenderSystem ` from the given pipeline builder and config
pub fn build<B>(pipe: B, config: Option<DisplayConfig>) -> Result<Self>
    where
        B: PipelineBuild<Pipeline = P>,
    {
        let mut renderer = {
            let mut renderer = Renderer::build();
            if let Some(config) = config.to_owned() {
                renderer.with_config(config);
            }
            let renderer = renderer.build()?;
            renderer
        };
        match renderer.create_pipe(pipe) {
            Ok(pipe) => Ok(Self::new(pipe, renderer)),
            Err(err) => {
                error!("Failed creating pipeline: {}", err);
                Err(err)
            }
        }
    }
pub fn build < B > ( pipe : B , config : Option < DisplayConfig > ) -> Result < Self > where B : PipelineBuild < Pipeline = P > , { let mut renderer = { let mut renderer = Renderer :: build ( ) ; if let Some ( config ) = config . to_owned ( ) { renderer . with_config ( config ) ; } let renderer = renderer . build ( ) ? ; renderer } ; match renderer . create_pipe ( pipe ) { Ok ( pipe ) => Ok ( Self :: new ( pipe , renderer ) ) , Err ( err ) => { error ! ( " " err ) ; Err ( err ) } } }
Build a new `RenderSystem` from the given pipeline builder and config
Build a new ` RenderSystem ` from the given pipeline builder and config
pipe
B
config
Option<DisplayConfig>
pipe
B
config
Option<DisplayConfig>