pub fn rebuild(
        &self,
        window_surface: &dyn WindowSurface,
    ) -> Result<Arc<Self>> {
        Self::new(self.device.clone(), window_surface, Some(&self))
    }
/// Rebuild a new swapchain using this swapchain as a reference.
Rebuild a new swapchain using this swapchain as a reference.
Rebuild a new swapchain using this swapchain as a reference .
pub fn rebuild(
        &self,
        window_surface: &dyn WindowSurface,
    ) -> Result<Arc<Self>> {
        Self::new(self.device.clone(), window_surface, Some(&self))
    }
pub fn rebuild ( & self , window_surface : & dyn WindowSurface , ) -> Result < Arc < Self > > { Self :: new ( self . device . clone ( ) , window_surface , Some ( & self ) ) }
Rebuild a new swapchain using this swapchain as a reference.
Rebuild a new swapchain using this swapchain as a reference .
&self
window_surface
&dyn WindowSurface