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

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

Filter to use when minifying the texture.

Filter to use when magnifying the texture.

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]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for SamplerBehavior
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SamplerBehavior
[src]

Formats the value using the given formatter. Read more

impl Default for SamplerBehavior
[src]

Returns the "default value" for a type. Read more

impl Copy for SamplerBehavior
[src]

impl Eq for SamplerBehavior
[src]

impl PartialEq<SamplerBehavior> for SamplerBehavior
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations