pub enum WrapMode {
Tile,
Mirror,
Clamp,
Border,
MirrorClamp,
}
Expand description
Specifies how image coordinates outside the range [0, 1]
are handled.
Variants§
Tile
Tile the image, that is, sample the coordinate modulo 1.0
, so
addressing the image beyond an edge will “wrap” back from the
other edge.
Mirror
Mirror the image. Like tile, but uses abs(coord) before the modulo.
Clamp
Clamp the image to the value at 0.0
or 1.0
respectively.
Border
Use border color.
MirrorClamp
Mirror once and clamp to edge otherwise.
Only valid if Features::SAMPLER_MIRROR_CLAMP_EDGE
is enabled.
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