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