[][src]Struct processing::uniforms::Sampler

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

A sampler.

Methods

impl<'t, T> Sampler<'t, T> where
    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 anisotropy(self, level: u16) -> Sampler<'t, T>[src]

Changes the magnifying filter of the sampler.

Trait Implementations

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

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

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

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

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

Auto Trait Implementations

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

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

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

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

type Owned = T

A type that holds a sized version of the content.

impl<T> Scalar for T where
    T: Copy + PartialEq<T> + Any + Debug
[src]

fn is<T>() -> bool where
    T: Scalar
[src]

Tests if Self the same as the type T Read more

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> Erased for T[src]