fn check_phases(&self) {
        let mut contains_render_to_window = false;
        for (_, phase) in self.phases.values() {
            match phase {
                PipelinePhase::Render { target, .. } => {
                    match target {
                        // When we use framebuffers / other render targets, this will be expanded upon.
                        RenderTarget::Window => {
                            contains_render_to_window = true;
                        }
                        _ => {
                            log::error!("Render target {:?} unimplemented", target);
                        }
                    }
                },
                _ => {}
            }
        }

        if !contains_render_to_window {
            panic!("pipeline was invalid! no phase was detected that renders to the user's window; this is disallowed behaviour!");
        }
    }
/// Asserts that the pipeline conforms to the rules set out in the `Pipeline`'s documentation.
Asserts that the pipeline conforms to the rules set out in the `Pipeline`'s documentation.
Asserts that the pipeline conforms to the rules set out in the ` Pipeline ` ' s documentation .
fn check_phases(&self) {
        let mut contains_render_to_window = false;
        for (_, phase) in self.phases.values() {
            match phase {
                PipelinePhase::Render { target, .. } => {
                    match target {
                        // When we use framebuffers / other render targets, this will be expanded upon.
                        RenderTarget::Window => {
                            contains_render_to_window = true;
                        }
                        _ => {
                            log::error!("Render target {:?} unimplemented", target);
                        }
                    }
                },
                _ => {}
            }
        }
        if !contains_render_to_window {
            panic!("pipeline was invalid! no phase was detected that renders to the user's window; this is disallowed behaviour!");
        }
    }
fn check_phases ( & self ) { let mut contains_render_to_window = false ; for ( _ , phase ) in self . phases . values ( ) { match phase { PipelinePhase :: Render { target , .. } => { match target { // When we use framebuffers / other render targets, this will be expanded upon. RenderTarget :: Window => { contains_render_to_window = true ; } _ => { log :: error ! ( " " target ) ; } } } , _ => { } } } if ! contains_render_to_window { panic ! ( " " ) ; } }
Asserts that the pipeline conforms to the rules set out in the `Pipeline`'s documentation.
Asserts that the pipeline conforms to the rules set out in the ` Pipeline ` ' s documentation .
&self
&self