[][src]Function ash_window::create_surface

pub unsafe fn create_surface<E, I>(
    entry: &E,
    instance: &I,
    window_handle: &dyn HasRawWindowHandle,
    allocation_callbacks: Option<&AllocationCallbacks>
) -> VkResult<SurfaceKHR> where
    E: EntryV1_0,
    I: InstanceV1_0

Create a surface from a raw surface handle.

instance must have created with platform specific surface extensions enabled.

Safety

In order for the created SurfaceKHR to be valid for the duration of its usage, the Instance this was called on must be dropped later than the resulting SurfaceKHR.