Trait glin::program::AsUniform[][src]

pub trait AsUniform<T: ?Sized> {
    fn as_uniform(&self) -> UniformValue;
}

Implemented by types that can be converted to uniform values

Required methods

fn as_uniform(&self) -> UniformValue[src]

Loading content...

Implementations on Foreign Types

impl AsUniform<f32> for f32[src]

impl AsUniform<i32> for i32[src]

impl AsUniform<bool> for bool[src]

impl AsUniform<u32> for u32[src]

impl AsUniform<[[f32; 4]; 4]> for [[f32; 4]; 4][src]

impl<'a> AsUniform<&'a [[f32; 4]; 4]> for &'a [[f32; 4]; 4][src]

impl AsUniform<[[f32; 3]; 3]> for [[f32; 3]; 3][src]

impl<'a> AsUniform<&'a [[f32; 3]; 3]> for &'a [[f32; 3]; 3][src]

impl AsUniform<[f32; 9]> for [f32; 9][src]

impl<'a> AsUniform<&'a [f32; 9]> for &'a [f32; 9][src]

impl AsUniform<[f32; 2]> for [f32; 2][src]

impl<'a> AsUniform<&'a [f32; 2]> for &'a [f32; 2][src]

impl AsUniform<[f32; 3]> for [f32; 3][src]

impl<'a> AsUniform<&'a [f32; 3]> for &'a [f32; 3][src]

impl AsUniform<[f32; 4]> for [f32; 4][src]

impl<'a> AsUniform<&'a [f32; 4]> for &'a [f32; 4][src]

impl AsUniform<[u32; 2]> for [u32; 2][src]

impl<'a> AsUniform<&'a [u32; 2]> for &'a [u32; 2][src]

impl AsUniform<[u32; 3]> for [u32; 3][src]

impl<'a> AsUniform<&'a [u32; 3]> for &'a [u32; 3][src]

impl AsUniform<[u32; 4]> for [u32; 4][src]

impl<'a> AsUniform<&'a [u32; 4]> for &'a [u32; 4][src]

impl AsUniform<[i32; 2]> for [i32; 2][src]

impl<'a> AsUniform<&'a [i32; 2]> for &'a [i32; 2][src]

impl AsUniform<[i32; 3]> for [i32; 3][src]

impl<'a> AsUniform<&'a [i32; 3]> for &'a [i32; 3][src]

impl AsUniform<[i32; 4]> for [i32; 4][src]

impl<'a> AsUniform<&'a [i32; 4]> for &'a [i32; 4][src]

impl<T: Borrow<Texture>> AsUniform<(Texture, u32)> for (T, u32)[src]

impl<C: Borrow<CubeMap>> AsUniform<(CubeMap, u32)> for (C, u32)[src]

impl<'a, T: Borrow<TextureSampler<'a>>> AsUniform<(TextureSampler<'a>, u32)> for (T, u32)[src]

impl<'a, C: Borrow<CubeMapSampler<'a>>> AsUniform<(CubeMapSampler<'a>, u32)> for (C, u32)[src]

impl AsUniform<Vec<f32, Global>> for Vec<f32>[src]

impl<U: AsRef<[f32; 2]>> AsUniform<Vec<[f32; 2], Global>> for Vec<U>[src]

impl<U: AsRef<[f32; 3]>> AsUniform<Vec<[f32; 3], Global>> for Vec<U>[src]

impl<U: AsRef<[f32; 4]>> AsUniform<Vec<[f32; 4], Global>> for Vec<U>[src]

impl AsUniform<Vec<i32, Global>> for Vec<i32>[src]

impl<U: AsRef<[i32; 2]>> AsUniform<Vec<[i32; 2], Global>> for Vec<U>[src]

impl<U: AsRef<[i32; 3]>> AsUniform<Vec<[i32; 3], Global>> for Vec<U>[src]

impl<U: AsRef<[i32; 4]>> AsUniform<Vec<[i32; 4], Global>> for Vec<U>[src]

impl AsUniform<Vec<u32, Global>> for Vec<u32>[src]

impl<U: AsRef<[u32; 2]>> AsUniform<Vec<[u32; 2], Global>> for Vec<U>[src]

impl<U: AsRef<[u32; 3]>> AsUniform<Vec<[u32; 3], Global>> for Vec<U>[src]

impl<U: AsRef<[u32; 4]>> AsUniform<Vec<[u32; 4], Global>> for Vec<U>[src]

Loading content...

Implementors

impl AsUniform<UniformValue> for UniformValue[src]

impl<'a, C: Borrow<CubeMapSampler<'a>>> AsUniform<CubeMapSampler<'a>> for C[src]

impl<'a, T: Borrow<TextureSampler<'a>>> AsUniform<TextureSampler<'a>> for T[src]

impl<A: AsRef<f32>> AsUniform<dyn AsRef<f32> + 'static> for A[src]

impl<A: AsRef<i32>> AsUniform<dyn AsRef<i32> + 'static> for A[src]

impl<A: AsRef<u32>> AsUniform<dyn AsRef<u32> + 'static> for A[src]

impl<C: Borrow<CubeMap>> AsUniform<CubeMap> for C[src]

impl<T: Borrow<Texture>> AsUniform<Texture> for T[src]

impl<T: AsRef<[[f32; 3]; 3]>> AsUniform<dyn AsRef<[[f32; 3]; 3]> + 'static> for T[src]

impl<T: AsRef<[[f32; 4]; 4]>> AsUniform<dyn AsRef<[[f32; 4]; 4]> + 'static> for T[src]

impl<T: AsRef<[f32; 2]>> AsUniform<dyn AsRef<[f32; 2]> + 'static> for T[src]

impl<T: AsRef<[f32; 3]>> AsUniform<dyn AsRef<[f32; 3]> + 'static> for T[src]

impl<T: AsRef<[f32; 4]>> AsUniform<dyn AsRef<[f32; 4]> + 'static> for T[src]

impl<T: AsRef<[f32; 9]>> AsUniform<dyn AsRef<[f32; 9]> + 'static> for T[src]

impl<T: AsRef<[i32; 2]>> AsUniform<dyn AsRef<[i32; 2]> + 'static> for T[src]

impl<T: AsRef<[i32; 3]>> AsUniform<dyn AsRef<[i32; 3]> + 'static> for T[src]

impl<T: AsRef<[i32; 4]>> AsUniform<dyn AsRef<[i32; 4]> + 'static> for T[src]

impl<T: AsRef<[u32; 2]>> AsUniform<dyn AsRef<[u32; 2]> + 'static> for T[src]

impl<T: AsRef<[u32; 3]>> AsUniform<dyn AsRef<[u32; 3]> + 'static> for T[src]

impl<T: AsRef<[u32; 4]>> AsUniform<dyn AsRef<[u32; 4]> + 'static> for T[src]

impl<U: Deref<Target = T>, T: AsUniform<[[f32; 3]; 3]>> AsUniform<dyn Deref<Target = [[f32; 3]; 3]> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<[[f32; 4]; 4]>> AsUniform<dyn Deref<Target = [[f32; 4]; 4]> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<[f32; 2]>> AsUniform<dyn Deref<Target = [f32; 2]> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<[f32; 3]>> AsUniform<dyn Deref<Target = [f32; 3]> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<[i32; 2]>> AsUniform<dyn Deref<Target = [i32; 2]> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<[i32; 3]>> AsUniform<dyn Deref<Target = [i32; 3]> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<[u32; 2]>> AsUniform<dyn Deref<Target = [u32; 2]> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<[u32; 3]>> AsUniform<dyn Deref<Target = [u32; 3]> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<i32>> AsUniform<dyn Deref<Target = i32> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<u32>> AsUniform<dyn Deref<Target = u32> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<dyn AsRef<[[f32; 3]; 3]>>> AsUniform<dyn Deref<Target = dyn AsRef<[[f32; 3]; 3]> + 'static> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<dyn AsRef<[[f32; 4]; 4]>>> AsUniform<dyn Deref<Target = dyn AsRef<[[f32; 4]; 4]> + 'static> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<dyn AsRef<[f32; 2]>>> AsUniform<dyn Deref<Target = dyn AsRef<[f32; 2]> + 'static> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<dyn AsRef<[f32; 3]>>> AsUniform<dyn Deref<Target = dyn AsRef<[f32; 3]> + 'static> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<dyn AsRef<[f32; 4]>>> AsUniform<dyn Deref<Target = [f32; 4]> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<dyn AsRef<[i32; 2]>>> AsUniform<dyn Deref<Target = dyn AsRef<[i32; 2]> + 'static> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<dyn AsRef<[i32; 3]>>> AsUniform<dyn Deref<Target = dyn AsRef<[i32; 3]> + 'static> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<dyn AsRef<[i32; 4]>>> AsUniform<dyn Deref<Target = [i32; 4]> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<dyn AsRef<[u32; 2]>>> AsUniform<dyn Deref<Target = dyn AsRef<[u32; 2]> + 'static> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<dyn AsRef<[u32; 3]>>> AsUniform<dyn Deref<Target = dyn AsRef<[u32; 3]> + 'static> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<dyn AsRef<[u32; 4]>>> AsUniform<dyn Deref<Target = [u32; 4]> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<dyn AsRef<f32>>> AsUniform<dyn Deref<Target = dyn AsRef<f32> + 'static> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<dyn AsRef<i32>>> AsUniform<dyn Deref<Target = dyn AsRef<i32> + 'static> + 'static> for U[src]

impl<U: Deref<Target = T>, T: AsUniform<dyn AsRef<u32>>> AsUniform<dyn Deref<Target = dyn AsRef<u32> + 'static> + 'static> for U[src]

Loading content...