#[non_exhaustive]pub enum Acceleration {
Auto,
Cpu,
Gpu,
}Expand description
Which device should scale a frame when both paths are available.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto
Use the platform default.
GPU-backed surfaces stay on the GPU on every supported platform.
Cpu
Always download GPU surfaces and scale on the CPU.
Gpu
Scale on the GPU where supported, falling back to the CPU on an error.
Trait Implementations§
Source§impl Clone for Acceleration
impl Clone for Acceleration
Source§fn clone(&self) -> Acceleration
fn clone(&self) -> Acceleration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Acceleration
Source§impl Debug for Acceleration
impl Debug for Acceleration
Source§impl Default for Acceleration
impl Default for Acceleration
Source§fn default() -> Acceleration
fn default() -> Acceleration
Returns the “default value” for a type. Read more
impl Eq for Acceleration
Source§impl PartialEq for Acceleration
impl PartialEq for Acceleration
impl StructuralPartialEq for Acceleration
Auto Trait Implementations§
impl Freeze for Acceleration
impl RefUnwindSafe for Acceleration
impl Send for Acceleration
impl Sync for Acceleration
impl Unpin for Acceleration
impl UnsafeUnpin for Acceleration
impl UnwindSafe for Acceleration
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