Enum wgpu::PowerPreference
source · [−]#[repr(C)]
pub enum PowerPreference {
LowPower,
HighPerformance,
}
Expand description
Power Preference when choosing a physical adapter.
Corresponds to WebGPU GPUPowerPreference
.
Variants
LowPower
Adapter that uses the least possible power. This is often an integrated GPU.
HighPerformance
Adapter that has the highest performance. This is often a discrete GPU.
Trait Implementations
sourceimpl Clone for PowerPreference
impl Clone for PowerPreference
sourcefn clone(&self) -> PowerPreference
fn clone(&self) -> PowerPreference
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PowerPreference
impl Debug for PowerPreference
sourceimpl Default for PowerPreference
impl Default for PowerPreference
sourcefn default() -> PowerPreference
fn default() -> PowerPreference
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for PowerPreference
impl<'de> Deserialize<'de> for PowerPreference
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<PowerPreference, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<PowerPreference, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Hash for PowerPreference
impl Hash for PowerPreference
sourceimpl PartialEq<PowerPreference> for PowerPreference
impl PartialEq<PowerPreference> for PowerPreference
sourcefn eq(&self, other: &PowerPreference) -> bool
fn eq(&self, other: &PowerPreference) -> bool
sourceimpl Serialize for PowerPreference
impl Serialize for PowerPreference
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for PowerPreference
impl Eq for PowerPreference
impl StructuralEq for PowerPreference
impl StructuralPartialEq for PowerPreference
Auto Trait Implementations
impl RefUnwindSafe for PowerPreference
impl Send for PowerPreference
impl Sync for PowerPreference
impl Unpin for PowerPreference
impl UnwindSafe for PowerPreference
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.