#[non_exhaustive]#[repr(u32)]pub enum VideoDriver {
None = 0,
GlCore = 1,
Gl = 2,
Vulkan = 3,
Direct3D9Hlsl = 4,
Direct3D11 = 5,
Direct3D12 = 6,
Metal = 7,
}Expand description
Valid video driver or runtime. This list is non-exhaustive.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None = 0
None (null)
GlCore = 1
OpenGL Core (glcore)
Gl = 2
Legacy OpenGL (gl)
Vulkan = 3
Vulkan (vulkan)
Direct3D9Hlsl = 4
Direct3D 9 (d3d9_hlsl)
Direct3D11 = 5
Direct3D 11 (d3d11)
Direct3D12 = 6
Direct3D12 (d3d12)
Metal = 7
Metal (metal)
Trait Implementations§
Source§impl Clone for VideoDriver
impl Clone for VideoDriver
Source§fn clone(&self) -> VideoDriver
fn clone(&self) -> VideoDriver
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VideoDriver
impl Debug for VideoDriver
Source§impl Display for VideoDriver
impl Display for VideoDriver
impl Copy for VideoDriver
Auto Trait Implementations§
impl Freeze for VideoDriver
impl RefUnwindSafe for VideoDriver
impl Send for VideoDriver
impl Sync for VideoDriver
impl Unpin for VideoDriver
impl UnwindSafe for VideoDriver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more