pub unsafe fn create_surface(
    instance: &Instance,
    display: &dyn HasDisplayHandle,
    window: &dyn HasWindowHandle
) -> VkResult<SurfaceKHR>
Expand description

Creates a surface for a window.

§Safety

The returned SurfaceKHR will only be valid while the supplied window is valid so the supplied window must not be destroyed before the returned SurfaceKHR is destroyed.