#[repr(u8)]pub enum Backend {
Empty = 0,
Vulkan = 1,
Metal = 2,
Dx12 = 3,
Dx11 = 4,
Gl = 5,
BrowserWebGpu = 6,
}
Expand description
Backends supported by wgpu.
Variants§
Empty = 0
Dummy backend, used for testing.
Vulkan = 1
Vulkan API
Metal = 2
Metal API (Apple platforms)
Dx12 = 3
Direct3D-12 (Windows)
Dx11 = 4
Direct3D-11 (Windows)
Gl = 5
OpenGL ES-3 (Linux, Android)
BrowserWebGpu = 6
WebGPU in the browser
Implementations§
Trait Implementations§
source§impl PartialEq for Backend
impl PartialEq for Backend
impl Copy for Backend
impl Eq for Backend
impl StructuralEq for Backend
impl StructuralPartialEq for Backend
Auto Trait Implementations§
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnwindSafe for Backend
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.