Struct glium::uniforms::Sampler
[−]
[src]
pub struct Sampler<'t, T: 't>(pub &'t T, pub SamplerBehavior);
A sampler.
Methods
impl<'t, T: 't> Sampler<'t, T>
[src]
fn new(texture: &'t T) -> Sampler<'t, T>
Builds a new Sampler
with default parameters.
fn wrap_function(self, function: SamplerWrapFunction) -> Sampler<'t, T>
Changes the wrap functions of all three coordinates.
fn minify_filter(self, filter: MinifySamplerFilter) -> Sampler<'t, T>
Changes the minifying filter of the sampler.
fn magnify_filter(self, filter: MagnifySamplerFilter) -> Sampler<'t, T>
Changes the magnifying filter of the sampler.
fn anisotropy(self, level: u16) -> Sampler<'t, T>
Changes the magnifying filter of the sampler.
Trait Implementations
impl<'t, T: Eq + 't> Eq for Sampler<'t, T>
[src]
impl<'t, T: PartialEq + 't> PartialEq for Sampler<'t, T>
[src]
fn eq(&self, __arg_0: &Sampler<'t, T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Sampler<'t, T>) -> bool
This method tests for !=
.
impl<'t, T: Hash + 't> Hash for Sampler<'t, T>
[src]
fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl<'t, T: Debug + 't> Debug for Sampler<'t, T>
[src]
impl<'t, T: 't> Copy for Sampler<'t, T>
[src]
impl<'t, T: 't> Clone for Sampler<'t, T>
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'a> AsUniformValue for Sampler<'a, Texture1d>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, CompressedTexture1d>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, SrgbTexture1d>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, CompressedSrgbTexture1d>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, IntegralTexture1d>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, UnsignedTexture1d>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, DepthTexture1d>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, Texture2d>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, CompressedTexture2d>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, SrgbTexture2d>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, CompressedSrgbTexture2d>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, IntegralTexture2d>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, UnsignedTexture2d>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, DepthTexture2d>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, Texture2dMultisample>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, IntegralTexture2dMultisample>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, SrgbTexture2dMultisample>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, UnsignedTexture2dMultisample>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, DepthTexture2dMultisample>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, Texture3d>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, CompressedTexture3d>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, SrgbTexture3d>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, CompressedSrgbTexture3d>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, IntegralTexture3d>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, UnsignedTexture3d>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, DepthTexture3d>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, Texture1dArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, CompressedTexture1dArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, SrgbTexture1dArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, CompressedSrgbTexture1dArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, IntegralTexture1dArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, UnsignedTexture1dArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, DepthTexture1dArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, Texture2dArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, CompressedTexture2dArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, SrgbTexture2dArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, CompressedSrgbTexture2dArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, IntegralTexture2dArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, UnsignedTexture2dArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, DepthTexture2dArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, Texture2dMultisampleArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, SrgbTexture2dMultisampleArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, IntegralTexture2dMultisampleArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, UnsignedTexture2dMultisampleArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, DepthTexture2dMultisampleArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, Cubemap>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, CompressedCubemap>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, SrgbCubemap>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, CompressedSrgbCubemap>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, IntegralCubemap>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, UnsignedCubemap>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, DepthCubemap>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, CubemapArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, CompressedCubemapArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, SrgbCubemapArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, CompressedSrgbCubemapArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, IntegralCubemapArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, UnsignedCubemapArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.
impl<'a> AsUniformValue for Sampler<'a, DepthCubemapArray>
[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue
.