[][src]Enum luminance::texture::Wrap

pub enum Wrap {
    ClampToEdge,
    Repeat,
    MirroredRepeat,
}

How to wrap texture coordinates while sampling textures?

Variants

ClampToEdge

If textures coordinates lay outside of [0;1], they will be clamped to either 0 or 1 for every components.

Repeat

Textures coordinates are repeated if they lay outside of [0;1]. Picture this as:

This example is not tested
// given the frac function returning the fractional part of a floating number:
coord_ith = frac(coord_ith); // always between [0;1]
MirroredRepeat

Same as Repeat but it will alternatively repeat between [0;1] and [1;0].

Trait Implementations

impl Clone for Wrap[src]

impl Copy for Wrap[src]

impl Debug for Wrap[src]

Auto Trait Implementations

impl Send for Wrap

impl Sync for Wrap

impl Unpin for Wrap

impl RefUnwindSafe for Wrap

impl UnwindSafe for Wrap

Blanket Implementations

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.

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

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

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