[−][src]Struct glium::uniforms::Sampler
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]
self,
comparison: Option<DepthTextureComparison>
) -> Sampler<'t, T>
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]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, CompressedTexture1d>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, CompressedSrgbTexture2d>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, IntegralTexture2d>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, UnsignedTexture2d>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, DepthTexture2d>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, Texture2dMultisample>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, IntegralTexture2dMultisample>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, SrgbTexture2dMultisample>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, UnsignedTexture2dMultisample>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, DepthTexture2dMultisample>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, Texture3d>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, SrgbTexture1d>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, CompressedTexture3d>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, SrgbTexture3d>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, CompressedSrgbTexture3d>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, IntegralTexture3d>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, UnsignedTexture3d>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, DepthTexture3d>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, Texture1dArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, CompressedTexture1dArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, SrgbTexture1dArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, CompressedSrgbTexture1dArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, CompressedSrgbTexture1d>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, IntegralTexture1dArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, UnsignedTexture1dArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, DepthTexture1dArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, Texture2dArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, CompressedTexture2dArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, SrgbTexture2dArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, CompressedSrgbTexture2dArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, IntegralTexture2dArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, UnsignedTexture2dArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, DepthTexture2dArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, IntegralTexture1d>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, Texture2dMultisampleArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, SrgbTexture2dMultisampleArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, IntegralTexture2dMultisampleArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, UnsignedTexture2dMultisampleArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, DepthTexture2dMultisampleArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, Cubemap>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, CompressedCubemap>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, SrgbCubemap>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, CompressedSrgbCubemap>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, IntegralCubemap>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, UnsignedTexture1d>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, UnsignedCubemap>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, DepthCubemap>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, CubemapArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, CompressedCubemapArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, SrgbCubemapArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, CompressedSrgbCubemapArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, IntegralCubemapArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, UnsignedCubemapArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, DepthCubemapArray>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, DepthTexture1d>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, Texture2d>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, CompressedTexture2d>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'a> AsUniformValue for Sampler<'a, SrgbTexture2d>
[src]
fn as_uniform_value(&self) -> UniformValue<'_>
[src]
impl<'t, T: 't> Clone for Sampler<'t, T>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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,
T: RefUnwindSafe,
impl<'t, T> Send for Sampler<'t, T> where
T: Sync,
T: Sync,
impl<'t, T> Sync for Sampler<'t, T> where
T: Sync,
T: Sync,
impl<'t, T> Unpin for Sampler<'t, T>
impl<'t, T> UnwindSafe for Sampler<'t, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Content for T where
T: Copy,
[src]
T: Copy,
type Owned = T
A type that holds a sized version of the content.
fn read<F, E>(usize, F) -> Result<T, E> where
F: FnOnce(&mut T) -> Result<(), E>,
[src]
F: FnOnce(&mut T) -> Result<(), E>,
fn get_elements_size() -> usize
[src]
fn to_void_ptr(&Self) -> *const ()
[src]
fn ref_from_ptr(*mut (), usize) -> Option<*mut T>
[src]
fn is_size_suitable(usize) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,