Function ash_window::create_surface [−][src]
pub unsafe fn create_surface<L>(
entry: &EntryCustom<L>,
instance: &Instance,
window_handle: &dyn HasRawWindowHandle,
allocation_callbacks: Option<&AllocationCallbacks>
) -> VkResult<SurfaceKHR>
Expand description
Create a surface from a raw surface handle.
instance must have created with platform specific surface extensions enabled.
Safety
In order for the created vk::SurfaceKHR to be valid for the duration of its
usage, the Instance this was called on must be dropped later than the
resulting vk::SurfaceKHR.