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

Functions to use for the X, Y, and Z coordinates.

minify_filter

Filter to use when minifying the texture.

magnify_filter

Filter to use when magnifying the texture.

max_anisotropy

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 Default for SamplerBehavior

fn default() -> SamplerBehavior

Derived Implementations

impl Eq for SamplerBehavior

impl PartialEq for SamplerBehavior

fn eq(&self, __arg_0: &SamplerBehavior) -> bool

fn ne(&self, __arg_0: &SamplerBehavior) -> bool

impl Hash for SamplerBehavior

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Copy for SamplerBehavior

impl Clone for SamplerBehavior

fn clone(&self) -> SamplerBehavior

fn clone_from(&mut self, source: &Self)

impl Debug for SamplerBehavior

fn fmt(&self, __arg_0: &mut Formatter) -> Result