Trait rin::gl::program::AsUniform[][src]

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

Implemented by types that can be converted to uniform values

Required methods

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

Loading content...

Implementations on Foreign Types

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

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

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

impl AsUniform<i32> for i32[src]

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

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

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

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

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

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

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

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

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

impl AsUniform<u32> for u32[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

impl AsUniform<bool> for bool[src]

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

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

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

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

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

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

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

impl AsUniform<f32> for f32[src]

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

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

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

Loading content...

Implementors

impl AsUniform<UniformValue> for UniformValue[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading content...