Struct nannou::ui::backend::glium::glium::uniforms::SamplerBehavior [−][src]
pub struct SamplerBehavior { pub wrap_function: (SamplerWrapFunction, SamplerWrapFunction, SamplerWrapFunction), pub minify_filter: MinifySamplerFilter, pub magnify_filter: MagnifySamplerFilter, pub max_anisotropy: u16, }
Behavior of a sampler.
Fields
wrap_function: (SamplerWrapFunction, SamplerWrapFunction, SamplerWrapFunction)
Functions to use for the X, Y, and Z coordinates.
minify_filter: MinifySamplerFilter
Filter to use when minifying the texture.
magnify_filter: MagnifySamplerFilter
Filter to use when magnifying the texture.
max_anisotropy: u16
1
means no anisotropic filtering, any value above 1
sets the max anisotropy.
Compatibility
This parameter is always available. However it is ignored on hardware that does not support anisotropic filtering.
If you set the value to a value higher than what the hardware supports, it will be clamped.
Trait Implementations
impl Hash for SamplerBehavior
[src]
impl Hash for SamplerBehavior
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,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for SamplerBehavior
[src]
impl Clone for SamplerBehavior
fn clone(&self) -> SamplerBehavior
[src]
fn clone(&self) -> SamplerBehavior
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)
Performs copy-assignment from source
. Read more
impl Debug for SamplerBehavior
[src]
impl Debug for SamplerBehavior
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 Default for SamplerBehavior
[src]
impl Default for SamplerBehavior
fn default() -> SamplerBehavior
[src]
fn default() -> SamplerBehavior
Returns the "default value" for a type. Read more
impl Copy for SamplerBehavior
[src]
impl Copy for SamplerBehavior
impl Eq for SamplerBehavior
[src]
impl Eq for SamplerBehavior
impl PartialEq<SamplerBehavior> for SamplerBehavior
[src]
impl PartialEq<SamplerBehavior> for SamplerBehavior
fn eq(&self, other: &SamplerBehavior) -> bool
[src]
fn eq(&self, other: &SamplerBehavior) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SamplerBehavior) -> bool
[src]
fn ne(&self, other: &SamplerBehavior) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for SamplerBehavior
impl Send for SamplerBehavior
impl Sync for SamplerBehavior
impl Sync for SamplerBehavior