[][src]Enum grr::SamplerAddress

#[repr(u32)]pub enum SamplerAddress {
    Repeat,
    MirrorRepeat,
    ClampEdge,
    ClampBorder,
    MirrorClampEdge,
}

Sampler addressing mode.

Specifies how coordinates outide of the texture coordinate system ([0, 1]) are treated during sampling operations.

Variants

Repeat

Strip off the integer part of the coordinate, effectively repeating the texture across the entire space.

MirrorRepeat

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.

ClampEdge

Clamp the coordinate to [0.0, 1.0].

ClampBorder

Use the border color for coordinates outside [0.0, 1.0].

MirrorClampEdge

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]

impl Copy for SamplerAddress[src]

impl Debug for SamplerAddress[src]

impl Eq for SamplerAddress[src]

impl Hash for SamplerAddress[src]

impl PartialEq<SamplerAddress> for SamplerAddress[src]

impl StructuralEq for SamplerAddress[src]

impl StructuralPartialEq for SamplerAddress[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.