Trait luminance::shader::program::Uniformable
[−]
[src]
pub trait Uniformable<C>: Sized where C: HasProgram { fn update(self, program: &C::Program, u: &Uniform<C, Self>); fn reify_type() -> Type; fn dim() -> Dim; }
Types that can behave as Uniform
.
Required Methods
fn update(self, program: &C::Program, u: &Uniform<C, Self>)
Update the uniform with a new value.
fn reify_type() -> Type
Retrieve the Type
of the uniform.
fn dim() -> Dim
Retrieve the Dim
of the uniform.
Implementors
impl<C> Uniformable<C> for i32 where C: HasProgram
impl<C> Uniformable<C> for [i32; 2] where C: HasProgram
impl<C> Uniformable<C> for [i32; 3] where C: HasProgram
impl<C> Uniformable<C> for [i32; 4] where C: HasProgram
impl<'a, C> Uniformable<C> for &'a [i32] where C: HasProgram
impl<'a, C> Uniformable<C> for &'a [[i32; 2]] where C: HasProgram
impl<'a, C> Uniformable<C> for &'a [[i32; 3]] where C: HasProgram
impl<'a, C> Uniformable<C> for &'a [[i32; 4]] where C: HasProgram
impl<C> Uniformable<C> for u32 where C: HasProgram
impl<C> Uniformable<C> for [u32; 2] where C: HasProgram
impl<C> Uniformable<C> for [u32; 3] where C: HasProgram
impl<C> Uniformable<C> for [u32; 4] where C: HasProgram
impl<'a, C> Uniformable<C> for &'a [u32] where C: HasProgram
impl<'a, C> Uniformable<C> for &'a [[u32; 2]] where C: HasProgram
impl<'a, C> Uniformable<C> for &'a [[u32; 3]] where C: HasProgram
impl<'a, C> Uniformable<C> for &'a [[u32; 4]] where C: HasProgram
impl<C> Uniformable<C> for f32 where C: HasProgram
impl<C> Uniformable<C> for [f32; 2] where C: HasProgram
impl<C> Uniformable<C> for [f32; 3] where C: HasProgram
impl<C> Uniformable<C> for [f32; 4] where C: HasProgram
impl<'a, C> Uniformable<C> for &'a [f32] where C: HasProgram
impl<'a, C> Uniformable<C> for &'a [[f32; 2]] where C: HasProgram
impl<'a, C> Uniformable<C> for &'a [[f32; 3]] where C: HasProgram
impl<'a, C> Uniformable<C> for &'a [[f32; 4]] where C: HasProgram
impl<C> Uniformable<C> for M22 where C: HasProgram
impl<C> Uniformable<C> for M33 where C: HasProgram
impl<C> Uniformable<C> for M44 where C: HasProgram
impl<'a, C> Uniformable<C> for &'a [M22] where C: HasProgram
impl<'a, C> Uniformable<C> for &'a [M33] where C: HasProgram
impl<'a, C> Uniformable<C> for &'a [M44] where C: HasProgram
impl<C> Uniformable<C> for bool where C: HasProgram
impl<C> Uniformable<C> for [bool; 2] where C: HasProgram
impl<C> Uniformable<C> for [bool; 3] where C: HasProgram
impl<C> Uniformable<C> for [bool; 4] where C: HasProgram
impl<'a, C> Uniformable<C> for &'a [bool] where C: HasProgram
impl<'a, C> Uniformable<C> for &'a [[bool; 2]] where C: HasProgram
impl<'a, C> Uniformable<C> for &'a [[bool; 3]] where C: HasProgram
impl<'a, C> Uniformable<C> for &'a [[bool; 4]] where C: HasProgram
impl<C> Uniformable<C> for Unit where C: HasProgram
impl<C> Uniformable<C> for Binding where C: HasProgram