Function vulkanalia::window::create_surface[][src]

pub unsafe fn create_surface(
    instance: &Instance,
    window: &dyn HasRawWindowHandle
) -> VkResult<SurfaceKHR>

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 the returned SurfaceKHR is destroyed.