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

pub enum Wrap {
    ClampToEdge,
    Repeat,
    MirroredRepeat,
}

How to wrap texture coordinates while sampling textures?

Variants

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

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

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

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

Trait Implementations

impl Clone for Wrap
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Wrap
[src]

impl Debug for Wrap
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Wrap

impl Sync for Wrap