Enum gfx_core::texture::WrapMode [] [src]

pub enum WrapMode {
    Tile,
    Mirror,
    Clamp,
    Border,
}

Specifies how texture coordinates outside the range [0, 1] are handled.

Variants

Tile the texture. That is, sample the coordinate modulo 1.0. This is the default.

Mirror the texture. Like tile, but uses abs(coord) before the modulo.

Clamp the texture to the value at 0.0 or 1.0 respectively.

Use border color.

Trait Implementations

impl Clone for WrapMode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for WrapMode
[src]

impl Debug for WrapMode
[src]

Formats the value using the given formatter.

impl Eq for WrapMode
[src]

impl Hash for WrapMode
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Ord for WrapMode
[src]

This method returns an Ordering between self and other. Read more

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the maximum of two values. Read more

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the minimum of two values. Read more

impl PartialEq for WrapMode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for WrapMode
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more