Enum gfx::device::tex::WrapMode [] [src]

pub enum WrapMode {
    Tile,
    Mirror,
    Clamp,
}

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

Variants

Tile

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

Mirror

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

Clamp

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

Trait Implementations

Derived Implementations

impl Debug for WrapMode

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for WrapMode

fn clone(&self) -> WrapMode

fn clone_from(&mut self, source: &Self)

impl Copy for WrapMode

impl Hash for WrapMode

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl PartialOrd for WrapMode

fn partial_cmp(&self, __arg_0: &WrapMode) -> Option<Ordering>

fn lt(&self, __arg_0: &WrapMode) -> bool

fn le(&self, __arg_0: &WrapMode) -> bool

fn gt(&self, __arg_0: &WrapMode) -> bool

fn ge(&self, __arg_0: &WrapMode) -> bool

impl PartialEq for WrapMode

fn eq(&self, __arg_0: &WrapMode) -> bool

fn ne(&self, __arg_0: &WrapMode) -> bool

impl Ord for WrapMode

fn cmp(&self, __arg_0: &WrapMode) -> Ordering

impl Eq for WrapMode