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 Eq for SamplerBehavior[src]
impl PartialEq for SamplerBehavior[src]
fn eq(&self, __arg_0: &SamplerBehavior) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &SamplerBehavior) -> bool
This method tests for !=.
impl Hash for SamplerBehavior[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 SamplerBehavior[src]
impl Clone for SamplerBehavior[src]
fn clone(&self) -> SamplerBehavior
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
impl Debug for SamplerBehavior[src]
impl Default for SamplerBehavior[src]
fn default() -> SamplerBehavior
Returns the "default value" for a type. Read more