pub enum DevicePreference {
Auto,
Software,
Index(usize),
}Expand description
Which physical device to use.
Variants§
Auto
Prefer discrete, then integrated, then anything else.
Software
Prefer a software rasterizer.
The deterministic reference used for golden comparison: a CPU device produces the same pixels everywhere, which is what makes it usable as the oracle other backends are diffed against.
Index(usize)
A specific index into the enumeration order.
Trait Implementations§
Source§impl Clone for DevicePreference
impl Clone for DevicePreference
impl Copy for DevicePreference
Source§impl Debug for DevicePreference
impl Debug for DevicePreference
Source§impl Default for DevicePreference
impl Default for DevicePreference
impl Eq for DevicePreference
Source§impl PartialEq for DevicePreference
impl PartialEq for DevicePreference
impl StructuralPartialEq for DevicePreference
Auto Trait Implementations§
impl Freeze for DevicePreference
impl RefUnwindSafe for DevicePreference
impl Send for DevicePreference
impl Sync for DevicePreference
impl Unpin for DevicePreference
impl UnsafeUnpin for DevicePreference
impl UnwindSafe for DevicePreference
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