pub fn new_target(&mut self, target: &Target) {
        // Distribute new targets that don't blend.
        self.effect.data.out_colors.clear();
        self.effect
            .data
            .out_colors
            .extend(target.color_bufs().iter().map(|cb| &cb.as_output).cloned());

        // Distribute new blend targets
        self.effect.data.out_blends.clear();
        self.effect
            .data
            .out_blends
            .extend(target.color_bufs().iter().map(|cb| &cb.as_output).cloned());

        // Distribute new depth buffer
        self.effect.data.out_depth = target.depth_buf().map(|db| (db.as_output.clone(), (0, 0)));
    }
/// Distributes new target data to the pass.
Distributes new target data to the pass.
Distributes new target data to the pass .
pub fn new_target(&mut self, target: &Target) {
        // Distribute new targets that don't blend.
        self.effect.data.out_colors.clear();
        self.effect
            .data
            .out_colors
            .extend(target.color_bufs().iter().map(|cb| &cb.as_output).cloned());
        // Distribute new blend targets
        self.effect.data.out_blends.clear();
        self.effect
            .data
            .out_blends
            .extend(target.color_bufs().iter().map(|cb| &cb.as_output).cloned());
        // Distribute new depth buffer
        self.effect.data.out_depth = target.depth_buf().map(|db| (db.as_output.clone(), (0, 0)));
    }
pub fn new_target ( & mut self , target : & Target ) { // Distribute new targets that don't blend. self . effect . data . out_colors . clear ( ) ; self . effect . data . out_colors . extend ( target . color_bufs ( ) . iter ( ) . map ( | cb | & cb . as_output ) . cloned ( ) ) ; // Distribute new blend targets self . effect . data . out_blends . clear ( ) ; self . effect . data . out_blends . extend ( target . color_bufs ( ) . iter ( ) . map ( | cb | & cb . as_output ) . cloned ( ) ) ; // Distribute new depth buffer self . effect . data . out_depth = target . depth_buf ( ) . map ( | db | ( db . as_output . clone ( ) , ( 0 , 0 ) ) ) ; }
Distributes new target data to the pass.
Distributes new target data to the pass .
&mut self
target
&Target
&mut self
target
&Target