[][src]Struct glium::uniforms::SamplerBehavior

pub struct SamplerBehavior {
    pub wrap_function: (SamplerWrapFunction, SamplerWrapFunction, SamplerWrapFunction),
    pub minify_filter: MinifySamplerFilter,
    pub magnify_filter: MagnifySamplerFilter,
    pub depth_texture_comparison: Option<DepthTextureComparison>,
    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.

depth_texture_comparison: Option<DepthTextureComparison>

The depth texture comparison function to use. Default value is None.

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

impl Copy for SamplerBehavior[src]

impl Debug for SamplerBehavior[src]

impl Default for SamplerBehavior[src]

impl Eq for SamplerBehavior[src]

impl Hash for SamplerBehavior[src]

impl PartialEq<SamplerBehavior> for SamplerBehavior[src]

impl StructuralEq for SamplerBehavior[src]

impl StructuralPartialEq for SamplerBehavior[src]

Auto Trait Implementations

impl RefUnwindSafe for SamplerBehavior

impl Send for SamplerBehavior

impl Sync for SamplerBehavior

impl Unpin for SamplerBehavior

impl UnwindSafe for SamplerBehavior

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Content for T where
    T: Copy
[src]

type Owned = T

A type that holds a sized version of the content.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.