pub enum WgpuPowerPreference {
HighPerformance,
LowPower,
}Expand description
Adapter power preference used when creating a headless wgpu runtime.
Variants§
HighPerformance
Prefer a discrete or otherwise high-performance adapter.
LowPower
Prefer an integrated or otherwise power-efficient adapter.
Trait Implementations§
Source§impl Clone for WgpuPowerPreference
impl Clone for WgpuPowerPreference
Source§fn clone(&self) -> WgpuPowerPreference
fn clone(&self) -> WgpuPowerPreference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WgpuPowerPreference
impl Debug for WgpuPowerPreference
Source§impl Default for WgpuPowerPreference
impl Default for WgpuPowerPreference
Source§fn default() -> WgpuPowerPreference
fn default() -> WgpuPowerPreference
Returns the “default value” for a type. Read more
Source§impl PartialEq for WgpuPowerPreference
impl PartialEq for WgpuPowerPreference
Source§fn eq(&self, other: &WgpuPowerPreference) -> bool
fn eq(&self, other: &WgpuPowerPreference) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for WgpuPowerPreference
impl Eq for WgpuPowerPreference
impl StructuralPartialEq for WgpuPowerPreference
Auto Trait Implementations§
impl Freeze for WgpuPowerPreference
impl RefUnwindSafe for WgpuPowerPreference
impl Send for WgpuPowerPreference
impl Sync for WgpuPowerPreference
impl Unpin for WgpuPowerPreference
impl UnsafeUnpin for WgpuPowerPreference
impl UnwindSafe for WgpuPowerPreference
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more