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

[]

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 Debug for SamplerBehavior
[src]

[src]
[]

Formats the value using the given formatter.

impl Clone for SamplerBehavior
[src]

[src]
[]

Returns a copy of the value. Read more

1.0.0
[src]
[]

Performs copy-assignment from source. Read more

impl Copy for SamplerBehavior
[src]

impl Hash for SamplerBehavior
[src]

[src]
[]

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

1.3.0
[src]
[]

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

impl PartialEq for SamplerBehavior
[src]

[src]
[]

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

[src]
[]

This method tests for !=.

impl Eq for SamplerBehavior
[src]

impl Default for SamplerBehavior
[src]

[src]
[]

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