pub enum WrapMode {
Tile,
Mirror,
Clamp,
Border,
}Expand description
Specifies how texture coordinates outside the range [0, 1] are handled.
Variants§
Tile
Tile the texture. That is, sample the coordinate modulo 1.0. This is
the default.
Mirror
Mirror the texture. Like tile, but uses abs(coord) before the modulo.
Clamp
Clamp the texture to the value at 0.0 or 1.0 respectively.
Border
Use border color.
Trait Implementations§
Source§impl Ord for WrapMode
impl Ord for WrapMode
Source§impl PartialOrd for WrapMode
impl PartialOrd for WrapMode
impl Copy for WrapMode
impl Eq for WrapMode
impl StructuralPartialEq for WrapMode
Auto Trait Implementations§
impl Freeze for WrapMode
impl RefUnwindSafe for WrapMode
impl Send for WrapMode
impl Sync for WrapMode
impl Unpin for WrapMode
impl UnwindSafe for WrapMode
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