pub enum ClampMode {
Clamp,
Repeat,
MirrorRepeat,
}
Expand description
Describes the clamping mode of a sampler, used when the shader writes to sample outside of texture boundaries.
Variants§
Clamp
The corresponding texel at the nearest edge is sampled.
Repeat
The sample coordinates wrap, effectively repeating the texture.
MirrorRepeat
The sample coordinates wrap and mirror, effectively repeating the texture and flipping.
Trait Implementations§
source§impl Ord for ClampMode
impl Ord for ClampMode
source§impl PartialEq<ClampMode> for ClampMode
impl PartialEq<ClampMode> for ClampMode
source§impl PartialOrd<ClampMode> for ClampMode
impl PartialOrd<ClampMode> for ClampMode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ClampMode
impl Eq for ClampMode
impl StructuralEq for ClampMode
impl StructuralPartialEq for ClampMode
Auto Trait Implementations§
impl RefUnwindSafe for ClampMode
impl Send for ClampMode
impl Sync for ClampMode
impl Unpin for ClampMode
impl UnwindSafe for ClampMode
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
source§impl<T> HasMut<T> for T
impl<T> HasMut<T> for T
source§fn retrieve_mut(&mut self) -> &mut T
fn retrieve_mut(&mut self) -> &mut T
Method to retrieve the context type as mutable.