Enum vulkano::swapchain::SurfaceApi
source · #[non_exhaustive]pub enum SurfaceApi {
Show 15 variants
Headless,
DisplayPlane,
Android,
DirectFB,
FuchsiaImagePipe,
GgpStreamDescriptor,
Ios,
MacOs,
Metal,
QnxScreen,
Vi,
Wayland,
Win32,
Xcb,
Xlib,
}
Expand description
The windowing API function that was used to construct a surface.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Headless
The surface was constructed using Surface::headless
or the
vkCreateHeadlessSurfaceEXT
Vulkan API function.
DisplayPlane
The surface was constructed using Surface::from_display_plane
or the
vkCreateDisplayPlaneSurfaceKHR
Vulkan API function.
Android
The surface was constructed using Surface::from_android
or the
vkCreateAndroidSurfaceKHR
Vulkan API function.
DirectFB
The surface was constructed using Surface::from_directfb
or the
vkCreateDirectFBSurfaceEXT
Vulkan API function.
FuchsiaImagePipe
The surface was constructed using Surface::from_fuchsia_image_pipe
or the
vkCreateImagePipeSurfaceFUCHSIA
Vulkan API function.
GgpStreamDescriptor
The surface was constructed using Surface::from_ggp_stream_descriptor
or the
vkCreateStreamDescriptorSurfaceGGP
Vulkan API function.
Ios
The surface was constructed using [Surface::from_ios
] or the
vkCreateIOSSurfaceMVK
Vulkan API function.
MacOs
The surface was constructed using [Surface::from_mac_os
] or the
vkCreateMacOSSurfaceMVK
Vulkan API function.
Metal
The surface was constructed using Surface::from_metal
or the
vkCreateMetalSurfaceEXT
Vulkan API function.
QnxScreen
The surface was constructed using Surface::from_qnx_screen
or the
vkCreateScreenSurfaceQNX
Vulkan API function.
Vi
The surface was constructed using Surface::from_vi
or the
vkCreateViSurfaceNN
Vulkan API function.
Wayland
The surface was constructed using Surface::from_wayland
or the
vkCreateWaylandSurfaceKHR
Vulkan API function.
Win32
The surface was constructed using Surface::from_win32
or the
vkCreateWin32SurfaceKHR
Vulkan API function.
Xcb
The surface was constructed using Surface::from_xcb
or the
vkCreateXcbSurfaceKHR
Vulkan API function.
Xlib
The surface was constructed using Surface::from_xlib
or the
vkCreateXlibSurfaceKHR
Vulkan API function.
Trait Implementations§
source§impl Clone for SurfaceApi
impl Clone for SurfaceApi
source§fn clone(&self) -> SurfaceApi
fn clone(&self) -> SurfaceApi
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SurfaceApi
impl Debug for SurfaceApi
source§impl Hash for SurfaceApi
impl Hash for SurfaceApi
source§impl PartialEq for SurfaceApi
impl PartialEq for SurfaceApi
source§fn eq(&self, other: &SurfaceApi) -> bool
fn eq(&self, other: &SurfaceApi) -> bool
self
and other
values to be equal, and is used
by ==
.