Function vulkano_win::create_vk_surface[][src]

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

Create a surface from the window type W. The surface borrows the window to prevent it from being dropped before the surface.