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 Eq for WrapMode
[src]

impl Ord for WrapMode
[src]

This method returns an Ordering between self and other. 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

impl Hash for WrapMode
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Copy for WrapMode
[src]

impl Clone for WrapMode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for WrapMode
[src]

Formats the value using the given formatter.