pub enum BackendPreference {
Vulkan,
Metal,
DX12,
WebGPU,
Auto,
All,
}Expand description
GPU backend preference for adapter selection.
Variants§
Vulkan
Prefer Vulkan backend (cross-platform, best performance on Linux/Windows).
Metal
Prefer Metal backend (best performance on macOS/iOS).
DX12
Prefer DX12 backend (best performance on Windows).
WebGPU
Prefer WebGPU backend (for browser environments).
Auto
Auto-select the best available backend for the platform.
All
Try all available backends in order of preference.
Implementations§
Source§impl BackendPreference
impl BackendPreference
Sourcepub fn to_backends(&self) -> Backends
pub fn to_backends(&self) -> Backends
Convert to WGPU backends flags.
Sourcepub fn platform_default() -> Self
pub fn platform_default() -> Self
Get platform-specific default backend.
Trait Implementations§
Source§impl Clone for BackendPreference
impl Clone for BackendPreference
Source§fn clone(&self) -> BackendPreference
fn clone(&self) -> BackendPreference
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 BackendPreference
impl Debug for BackendPreference
Source§impl PartialEq for BackendPreference
impl PartialEq for BackendPreference
impl Copy for BackendPreference
impl Eq for BackendPreference
impl StructuralPartialEq for BackendPreference
Auto Trait Implementations§
impl Freeze for BackendPreference
impl RefUnwindSafe for BackendPreference
impl Send for BackendPreference
impl Sync for BackendPreference
impl Unpin for BackendPreference
impl UnsafeUnpin for BackendPreference
impl UnwindSafe for BackendPreference
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.