Enum nannou::wgpu::PowerPreference [−]
#[repr(C)] pub enum PowerPreference { LowPower, HighPerformance, }
Expand description
Power Preference when choosing a physical adapter.
Variants
Adapter that uses the least possible power. This is often an integrated GPU.
Adapter that has the highest performance. This is often a discrete GPU.
Trait Implementations
impl Clone for PowerPreference
impl Clone for PowerPreference
pub fn clone(&self) -> PowerPreference
pub fn clone(&self) -> PowerPreference
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for PowerPreference
impl Debug for PowerPreference
impl Default for PowerPreference
impl Default for PowerPreference
pub fn default() -> PowerPreference
pub fn default() -> PowerPreference
Returns the “default value” for a type. Read more
impl Hash for PowerPreference
impl Hash for PowerPreference
impl PartialEq<PowerPreference> for PowerPreference
impl PartialEq<PowerPreference> for PowerPreference
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
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V