Function vulkano_win::create_surface_from_handle
source · [−]pub fn create_surface_from_handle<W>(
window: W,
instance: Arc<Instance>
) -> Result<Arc<Surface<W>>, SurfaceCreationError>where
W: HasRawWindowHandle + HasRawDisplayHandle,
Expand description
Creates a vulkan surface from a generic window which implements HasRawWindowHandle and thus can reveal the os-dependent handle.