pub fn resize(
device: &Device,
surface: &Surface<'_>,
surface_config: &SurfaceConfiguration,
)Expand description
Reconfigure a surface after a window resize or when the swapchain is lost.
The caller must also update surface_config.width/height before invoking.