Enum nannou::ui::backend::glium::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
Repeat
Samples at coord x + 1
map to coord x
.
Mirror
Samples at coord x + 1
map to coord 1 - x
.
Clamp
Samples at coord x + 1
map to coord 1
.
MirrorClamp
Same as Mirror, but only for one repetition,
Trait Implementations
impl Hash for SamplerWrapFunction
[src]
impl Hash for SamplerWrapFunction
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for SamplerWrapFunction
[src]
impl Clone for SamplerWrapFunction
fn clone(&self) -> SamplerWrapFunction
[src]
fn clone(&self) -> SamplerWrapFunction
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for SamplerWrapFunction
[src]
impl Debug for SamplerWrapFunction
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for SamplerWrapFunction
[src]
impl Copy for SamplerWrapFunction
impl Eq for SamplerWrapFunction
[src]
impl Eq for SamplerWrapFunction
impl PartialEq<SamplerWrapFunction> for SamplerWrapFunction
[src]
impl PartialEq<SamplerWrapFunction> for SamplerWrapFunction
Auto Trait Implementations
impl Send for SamplerWrapFunction
impl Send for SamplerWrapFunction
impl Sync for SamplerWrapFunction
impl Sync for SamplerWrapFunction