pub fn rebuild_swapchain(
        &mut self,
        window_surface: &dyn WindowSurface,
    ) -> Result<()> {
        let swapchain = self.frame_context.rebuild_swapchain(window_surface)?;
        self.pipeline2d = Pipeline2d::new(self.device.clone(), &swapchain)?;
        Ok(())
    }
/// Replace the swapchain and all dependent resources in the Triangle
/// subsystem.
Replace the swapchain and all dependent resources in the Triangle
subsystem.
Replace the swapchain and all dependent resources in the Triangle subsystem .
pub fn rebuild_swapchain(
        &mut self,
        window_surface: &dyn WindowSurface,
    ) -> Result<()> {
        let swapchain = self.frame_context.rebuild_swapchain(window_surface)?;
        self.pipeline2d = Pipeline2d::new(self.device.clone(), &swapchain)?;
        Ok(())
    }
pub fn rebuild_swapchain ( & mut self , window_surface : & dyn WindowSurface , ) -> Result < ( ) > { let swapchain = self . frame_context . rebuild_swapchain ( window_surface ) ? ; self . pipeline2d = Pipeline2d :: new ( self . device . clone ( ) , & swapchain ) ? ; Ok ( ( ) ) }
Replace the swapchain and all dependent resources in the Triangle
subsystem.
Replace the swapchain and all dependent resources in the Triangle subsystem .
&mut self
window_surface
&dyn WindowSurface