[−][src]Enum grr::SamplerAddress
Sampler addressing mode.
Specifies how coordinates outide of the texture coordinate system ([0, 1]
) are treated during
sampling operations.
Variants
Strip off the integer part of the coordinate, effectively repeating the texture across the entire space.
Strip of the integer part of the coordinate, but mirror the coordinate when the interger is odd. This will create repeated images that are alternately flipped.
Clamp the coordinate to [0.0, 1.0].
Use the border color for coordinates outside [0.0, 1.0].
Coordinates in the range [-1.0, 0.0] will be mirrored onto
[0.0, 1.0]. Outside of [-1.0, 1.0], behavior is the same as ClampEdge
.
Trait Implementations
impl Clone for SamplerAddress
[src]
fn clone(&self) -> SamplerAddress
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SamplerAddress
[src]
impl Debug for SamplerAddress
[src]
impl Eq for SamplerAddress
[src]
impl Hash for SamplerAddress
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<SamplerAddress> for SamplerAddress
[src]
fn eq(&self, other: &SamplerAddress) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for SamplerAddress
[src]
impl StructuralPartialEq for SamplerAddress
[src]
Auto Trait Implementations
impl RefUnwindSafe for SamplerAddress
impl Send for SamplerAddress
impl Sync for SamplerAddress
impl Unpin for SamplerAddress
impl UnwindSafe for SamplerAddress
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,