pub enum Backend {
All,
OnlyPrimary,
Vulkan,
Metal,
Dx12,
Dx11,
Gl,
BrowserWebGpu,
}
Expand description
Possible graphics backends.
The default is Primary
.
Variants
All
Includes Backend::OnlyPrimary
and also secondary APIs consisting of OpenGL and DX11.
These APIs may have issues and may be deprecated by some platforms.
OnlyPrimary
Primary APIs consisting of Vulkan, Metal and DX12.
These APIs have first-class support from WGPU and from the platforms that support them.
Vulkan
Use the Khronos Vulkan API.
Metal
Use the Apple Metal API.
Dx12
Use the Microsoft DirectX 12 API.
Dx11
Use the Microsoft DirectX 11 API. This is not a recommended backend.
Gl
Use the Khronos OpenGL API. This is not a recommended backend.
BrowserWebGpu
Use the WebGPU API. Targets the web.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Backend
impl<'de> Deserialize<'de> for Backend
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.sourceimpl<T> HasMut<T> for T
impl<T> HasMut<T> for T
sourcefn retrieve_mut(&mut self) -> &mut T
fn retrieve_mut(&mut self) -> &mut T
Method to retrieve the context type as mutable.