[][src]Struct glium::uniforms::Sampler

pub struct Sampler<'t, T: 't>(pub &'t T, pub SamplerBehavior);

A sampler.

Implementations

impl<'t, T: 't> Sampler<'t, T>[src]

pub fn new(texture: &'t T) -> Sampler<'t, T>[src]

Builds a new Sampler with default parameters.

pub fn wrap_function(self, function: SamplerWrapFunction) -> Sampler<'t, T>[src]

Changes the wrap functions of all three coordinates.

pub fn minify_filter(self, filter: MinifySamplerFilter) -> Sampler<'t, T>[src]

Changes the minifying filter of the sampler.

pub fn magnify_filter(self, filter: MagnifySamplerFilter) -> Sampler<'t, T>[src]

Changes the magnifying filter of the sampler.

pub fn depth_texture_comparison(
    self,
    comparison: Option<DepthTextureComparison>
) -> Sampler<'t, T>
[src]

Sets the depth texture comparison method.

pub fn anisotropy(self, level: u16) -> Sampler<'t, T>[src]

Changes the magnifying filter of the sampler.

Trait Implementations

impl<'a> AsUniformValue for Sampler<'a, Texture1d>[src]

impl<'a> AsUniformValue for Sampler<'a, CompressedTexture1d>[src]

impl<'a> AsUniformValue for Sampler<'a, CompressedSrgbTexture2d>[src]

impl<'a> AsUniformValue for Sampler<'a, IntegralTexture2d>[src]

impl<'a> AsUniformValue for Sampler<'a, UnsignedTexture2d>[src]

impl<'a> AsUniformValue for Sampler<'a, DepthTexture2d>[src]

impl<'a> AsUniformValue for Sampler<'a, Texture2dMultisample>[src]

impl<'a> AsUniformValue for Sampler<'a, IntegralTexture2dMultisample>[src]

impl<'a> AsUniformValue for Sampler<'a, SrgbTexture2dMultisample>[src]

impl<'a> AsUniformValue for Sampler<'a, UnsignedTexture2dMultisample>[src]

impl<'a> AsUniformValue for Sampler<'a, DepthTexture2dMultisample>[src]

impl<'a> AsUniformValue for Sampler<'a, Texture3d>[src]

impl<'a> AsUniformValue for Sampler<'a, SrgbTexture1d>[src]

impl<'a> AsUniformValue for Sampler<'a, CompressedTexture3d>[src]

impl<'a> AsUniformValue for Sampler<'a, SrgbTexture3d>[src]

impl<'a> AsUniformValue for Sampler<'a, CompressedSrgbTexture3d>[src]

impl<'a> AsUniformValue for Sampler<'a, IntegralTexture3d>[src]

impl<'a> AsUniformValue for Sampler<'a, UnsignedTexture3d>[src]

impl<'a> AsUniformValue for Sampler<'a, DepthTexture3d>[src]

impl<'a> AsUniformValue for Sampler<'a, Texture1dArray>[src]

impl<'a> AsUniformValue for Sampler<'a, CompressedTexture1dArray>[src]

impl<'a> AsUniformValue for Sampler<'a, SrgbTexture1dArray>[src]

impl<'a> AsUniformValue for Sampler<'a, CompressedSrgbTexture1dArray>[src]

impl<'a> AsUniformValue for Sampler<'a, CompressedSrgbTexture1d>[src]

impl<'a> AsUniformValue for Sampler<'a, IntegralTexture1dArray>[src]

impl<'a> AsUniformValue for Sampler<'a, UnsignedTexture1dArray>[src]

impl<'a> AsUniformValue for Sampler<'a, DepthTexture1dArray>[src]

impl<'a> AsUniformValue for Sampler<'a, Texture2dArray>[src]

impl<'a> AsUniformValue for Sampler<'a, CompressedTexture2dArray>[src]

impl<'a> AsUniformValue for Sampler<'a, SrgbTexture2dArray>[src]

impl<'a> AsUniformValue for Sampler<'a, CompressedSrgbTexture2dArray>[src]

impl<'a> AsUniformValue for Sampler<'a, IntegralTexture2dArray>[src]

impl<'a> AsUniformValue for Sampler<'a, UnsignedTexture2dArray>[src]

impl<'a> AsUniformValue for Sampler<'a, DepthTexture2dArray>[src]

impl<'a> AsUniformValue for Sampler<'a, IntegralTexture1d>[src]

impl<'a> AsUniformValue for Sampler<'a, Texture2dMultisampleArray>[src]

impl<'a> AsUniformValue for Sampler<'a, SrgbTexture2dMultisampleArray>[src]

impl<'a> AsUniformValue for Sampler<'a, IntegralTexture2dMultisampleArray>[src]

impl<'a> AsUniformValue for Sampler<'a, UnsignedTexture2dMultisampleArray>[src]

impl<'a> AsUniformValue for Sampler<'a, DepthTexture2dMultisampleArray>[src]

impl<'a> AsUniformValue for Sampler<'a, Cubemap>[src]

impl<'a> AsUniformValue for Sampler<'a, CompressedCubemap>[src]

impl<'a> AsUniformValue for Sampler<'a, SrgbCubemap>[src]

impl<'a> AsUniformValue for Sampler<'a, CompressedSrgbCubemap>[src]

impl<'a> AsUniformValue for Sampler<'a, IntegralCubemap>[src]

impl<'a> AsUniformValue for Sampler<'a, UnsignedTexture1d>[src]

impl<'a> AsUniformValue for Sampler<'a, UnsignedCubemap>[src]

impl<'a> AsUniformValue for Sampler<'a, DepthCubemap>[src]

impl<'a> AsUniformValue for Sampler<'a, CubemapArray>[src]

impl<'a> AsUniformValue for Sampler<'a, CompressedCubemapArray>[src]

impl<'a> AsUniformValue for Sampler<'a, SrgbCubemapArray>[src]

impl<'a> AsUniformValue for Sampler<'a, CompressedSrgbCubemapArray>[src]

impl<'a> AsUniformValue for Sampler<'a, IntegralCubemapArray>[src]

impl<'a> AsUniformValue for Sampler<'a, UnsignedCubemapArray>[src]

impl<'a> AsUniformValue for Sampler<'a, DepthCubemapArray>[src]

impl<'a> AsUniformValue for Sampler<'a, DepthTexture1d>[src]

impl<'a> AsUniformValue for Sampler<'a, Texture2d>[src]

impl<'a> AsUniformValue for Sampler<'a, CompressedTexture2d>[src]

impl<'a> AsUniformValue for Sampler<'a, SrgbTexture2d>[src]

impl<'t, T: 't> Clone for Sampler<'t, T>[src]

impl<'t, T: 't> Copy for Sampler<'t, T>[src]

impl<'t, T: Debug + 't> Debug for Sampler<'t, T>[src]

impl<'t, T: Eq + 't> Eq for Sampler<'t, T>[src]

impl<'t, T: Hash + 't> Hash for Sampler<'t, T>[src]

impl<'t, T: PartialEq + 't> PartialEq<Sampler<'t, T>> for Sampler<'t, T>[src]

impl<'t, T: 't> StructuralEq for Sampler<'t, T>[src]

impl<'t, T: 't> StructuralPartialEq for Sampler<'t, T>[src]

Auto Trait Implementations

impl<'t, T> RefUnwindSafe for Sampler<'t, T> where
    T: RefUnwindSafe

impl<'t, T> Send for Sampler<'t, T> where
    T: Sync

impl<'t, T> Sync for Sampler<'t, T> where
    T: Sync

impl<'t, T> Unpin for Sampler<'t, T>

impl<'t, T> UnwindSafe for Sampler<'t, T> where
    T: RefUnwindSafe

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.