logo
pub fn create_surface_from_winit<W>(
    window: W,
    instance: Arc<Instance>
) -> Result<Arc<Surface<W>>, SurfaceCreationError>where
    W: SafeBorrow<Window>,
Expand description

Create a surface from a Winit window or a reference to it. The surface takes W to prevent it from being dropped before the surface.