Enum glium::uniforms::SamplerWrapFunction
[−]
[src]
pub enum SamplerWrapFunction {
Repeat,
Mirror,
Clamp,
MirrorClamp,
}Function to use for out-of-bounds samples.
This is how GL must handle samples that are outside the texture.
Variants
RepeatSamples at coord x + 1 map to coord x.
MirrorSamples at coord x + 1 map to coord 1 - x.
ClampSamples at coord x + 1 map to coord 1.
MirrorClampSame as Mirror, but only for one repetition,
Trait Implementations
impl Eq for SamplerWrapFunction[src]
impl PartialEq for SamplerWrapFunction[src]
fn eq(&self, __arg_0: &SamplerWrapFunction) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Hash for SamplerWrapFunction[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl Copy for SamplerWrapFunction[src]
impl Clone for SamplerWrapFunction[src]
fn clone(&self) -> SamplerWrapFunction
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more