Struct 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 Debug for SamplerBehavior[src]
impl Clone for SamplerBehavior[src]
fn clone(&self) -> SamplerBehavior[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for SamplerBehavior[src]
impl Hash for SamplerBehavior[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
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]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl PartialEq for SamplerBehavior[src]
fn eq(&self, __arg_0: &SamplerBehavior) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &SamplerBehavior) -> bool[src]
This method tests for !=.
impl Eq for SamplerBehavior[src]
impl Default for SamplerBehavior[src]
fn default() -> SamplerBehavior[src]
Returns the "default value" for a type. Read more