pub fn resize<P: PolyPipeline>(&mut self, pipe: &mut P, new_size: (u32, u32)) {
        self.main_target.resize_main_target(&self.window);
        let mut targets = HashMap::default();
        targets.insert("".to_string(), self.main_target.clone());
        for (key, value) in pipe.targets().iter().filter(|&(k, _)| !k.is_empty()) {
            let (key, target) = TargetBuilder::new(key.clone())
                .with_num_color_bufs(value.color_bufs().len())
                .with_depth_buf(value.depth_buf().is_some())
                .build(&mut self.factory, new_size)
                .unwrap();
            targets.insert(key, target);
        }
        pipe.new_targets(targets);
    }
/// Resize the targets associated with this renderer and pipeline.
Resize the targets associated with this renderer and pipeline.
Resize the targets associated with this renderer and pipeline .
pub fn resize<P: PolyPipeline>(&mut self, pipe: &mut P, new_size: (u32, u32)) {
        self.main_target.resize_main_target(&self.window);
        let mut targets = HashMap::default();
        targets.insert("".to_string(), self.main_target.clone());
        for (key, value) in pipe.targets().iter().filter(|&(k, _)| !k.is_empty()) {
            let (key, target) = TargetBuilder::new(key.clone())
                .with_num_color_bufs(value.color_bufs().len())
                .with_depth_buf(value.depth_buf().is_some())
                .build(&mut self.factory, new_size)
                .unwrap();
            targets.insert(key, target);
        }
        pipe.new_targets(targets);
    }
pub fn resize < P : PolyPipeline > ( & mut self , pipe : & mut P , new_size : ( u32 , u32 ) ) { self . main_target . resize_main_target ( & self . window ) ; let mut targets = HashMap :: default ( ) ; targets . insert ( " " . to_string ( ) , self . main_target . clone ( ) ) ; for ( key , value ) in pipe . targets ( ) . iter ( ) . filter ( | & ( k , _ ) | ! k . is_empty ( ) ) { let ( key , target ) = TargetBuilder :: new ( key . clone ( ) ) . with_num_color_bufs ( value . color_bufs ( ) . len ( ) ) . with_depth_buf ( value . depth_buf ( ) . is_some ( ) ) . build ( & mut self . factory , new_size ) . unwrap ( ) ; targets . insert ( key , target ) ; } pipe . new_targets ( targets ) ; }
Resize the targets associated with this renderer and pipeline.
Resize the targets associated with this renderer and pipeline .
&mut self
pipe
&mut P
new_size
(u32, u32)
&mut self
pipe
&mut P
new_size
(u32, u32)