Function vulkano_win::create_surface_from_winit
source · pub fn create_surface_from_winit(
window: Arc<Window>,
instance: Arc<Instance>
) -> Result<Arc<Surface>, Validated<VulkanError>>
👎Deprecated since 0.34.0: vulkano-win is deprecated, use
Surface::required_extensions
and Surface::from_window
insteadExpand description
Create a surface from a Winit window or a reference to it. The surface takes W
to prevent it
from being dropped before the surface.