pub enum GpuTier {
Unknown,
Integrated,
EntryDiscrete,
MidDiscrete,
HighDiscrete,
}Expand description
Coarse performance class for default-quality selection, ordered low -> high so
callers can compare with >=. Each backend maps its native signals (memory
budget, discrete / integrated, Apple GPU family) onto this via classify_tier.
Variants§
Unknown
Unknown hardware: the conservative default, never the top preset. Sorts lowest so a comparison-based resolver treats it as the floor.
Integrated
Integrated / low-power GPU: the lowest quality tier.
EntryDiscrete
Older or small discrete GPU, or an Apple base M-series: entry quality.
MidDiscrete
Mainstream discrete GPU, or an Apple Pro: mid quality.
HighDiscrete
Enthusiast discrete GPU, or an Apple Max / Ultra: high quality.
Trait Implementations§
impl Copy for GpuTier
impl Eq for GpuTier
Source§impl Ord for GpuTier
impl Ord for GpuTier
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for GpuTier
impl PartialOrd for GpuTier
impl StructuralPartialEq for GpuTier
Auto Trait Implementations§
impl Freeze for GpuTier
impl RefUnwindSafe for GpuTier
impl Send for GpuTier
impl Sync for GpuTier
impl Unpin for GpuTier
impl UnsafeUnpin for GpuTier
impl UnwindSafe for GpuTier
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> Comparable<K> for Q
impl<Q, K> Comparable<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.