pub enum DeviceType {
Cpu,
Integrated,
Discrete,
Virtual,
Other,
}Expand description
Broad class of physical device.
Variants§
Cpu
Software rasteriser — lavapipe, WARP, swiftshader. Correct, slow; the P1 golden-image CI target.
Integrated
A GPU integrated with the CPU package.
Discrete
A separate GPU card.
Virtual
A virtualised or para-virtualised GPU.
Other
The backend declined to say.
Trait Implementations§
Source§impl Clone for DeviceType
impl Clone for DeviceType
impl Copy for DeviceType
Source§impl Debug for DeviceType
impl Debug for DeviceType
impl Eq for DeviceType
Source§impl Hash for DeviceType
impl Hash for DeviceType
Source§impl Ord for DeviceType
impl Ord for DeviceType
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 PartialEq for DeviceType
impl PartialEq for DeviceType
Source§impl PartialOrd for DeviceType
impl PartialOrd for DeviceType
impl StructuralPartialEq for DeviceType
Auto Trait Implementations§
impl Freeze for DeviceType
impl RefUnwindSafe for DeviceType
impl Send for DeviceType
impl Sync for DeviceType
impl Unpin for DeviceType
impl UnsafeUnpin for DeviceType
impl UnwindSafe for DeviceType
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