#[repr(u32)]pub enum ScaleMode {
Nearest = 0,
Linear = 1,
}Expand description
Texture scaling.
Variants§
Nearest = 0
Nearest-neighbor scaling. This is best for pixel art.
Linear = 1
Linear, “fuzzy” scaling.
Trait Implementations§
impl Copy for ScaleMode
Auto Trait Implementations§
impl Freeze for ScaleMode
impl RefUnwindSafe for ScaleMode
impl Send for ScaleMode
impl Sync for ScaleMode
impl Unpin for ScaleMode
impl UnwindSafe for ScaleMode
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