pub enum TileMode {
Clamp,
Repeat,
Mirror,
Decal,
}Expand description
TileMode controls samples outside an image’s bounds.
Variants§
Clamp
Clamp extends the nearest edge texel.
Repeat
Repeat repeats the image in the same orientation.
Mirror
Mirror repeats the image with alternating orientation.
Decal
Decal returns transparent pixels outside the image.
Trait Implementations§
impl Copy for TileMode
impl Eq for TileMode
impl StructuralPartialEq for TileMode
Auto Trait Implementations§
impl Freeze for TileMode
impl RefUnwindSafe for TileMode
impl Send for TileMode
impl Sync for TileMode
impl Unpin for TileMode
impl UnsafeUnpin for TileMode
impl UnwindSafe for TileMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.