#[non_exhaustive]pub enum CanvasGpu {
Cpu,
Pan,
Zoom,
}Expand description
how a canvas may use the GPU while its view moves
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.
Cpu
the CPU path in every frame, as without a GPU
Pan
moves by whole pixels at the same scale come from the tiles; another scale is drawn by the CPU at once. Pixel-exact when the content’s raster does not depend on its place
Zoom
also zoom: the tiles are scaled while the gesture runs (a little soft or coarse), the CPU draws the picture sharp a moment after it
Trait Implementations§
impl Copy for CanvasGpu
impl Eq for CanvasGpu
impl StructuralPartialEq for CanvasGpu
Auto Trait Implementations§
impl Forget for CanvasGpu
impl Freeze for CanvasGpu
impl RefUnwindSafe for CanvasGpu
impl Send for CanvasGpu
impl Sync for CanvasGpu
impl Unpin for CanvasGpu
impl UnsafeUnpin for CanvasGpu
impl UnwindSafe for CanvasGpu
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