Trait luminance::shader::program::Uniformable
[−]
[src]
pub trait Uniformable: Copy + Sized { fn update(self, program: &Program, u: &Uniform<Self>); fn reify_type() -> Type; fn dim() -> Dim; }
Types that can behave as Uniform
.
Required Methods
fn update(self, program: &Program, u: &Uniform<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 Uniformable for i32
impl Uniformable for [i32; 2]
impl Uniformable for [i32; 3]
impl Uniformable for [i32; 4]
impl<'a> Uniformable for &'a [i32]
impl<'a> Uniformable for &'a [[i32; 2]]
impl<'a> Uniformable for &'a [[i32; 3]]
impl<'a> Uniformable for &'a [[i32; 4]]
impl Uniformable for u32
impl Uniformable for [u32; 2]
impl Uniformable for [u32; 3]
impl Uniformable for [u32; 4]
impl<'a> Uniformable for &'a [u32]
impl<'a> Uniformable for &'a [[u32; 2]]
impl<'a> Uniformable for &'a [[u32; 3]]
impl<'a> Uniformable for &'a [[u32; 4]]
impl Uniformable for f32
impl Uniformable for [f32; 2]
impl Uniformable for [f32; 3]
impl Uniformable for [f32; 4]
impl<'a> Uniformable for &'a [f32]
impl<'a> Uniformable for &'a [[f32; 2]]
impl<'a> Uniformable for &'a [[f32; 3]]
impl<'a> Uniformable for &'a [[f32; 4]]
impl Uniformable for M22
impl Uniformable for M33
impl Uniformable for M44
impl<'a> Uniformable for &'a [M22]
impl<'a> Uniformable for &'a [M33]
impl<'a> Uniformable for &'a [M44]
impl Uniformable for bool
impl Uniformable for [bool; 2]
impl Uniformable for [bool; 3]
impl Uniformable for [bool; 4]
impl<'a> Uniformable for &'a [bool]
impl<'a> Uniformable for &'a [[bool; 2]]
impl<'a> Uniformable for &'a [[bool; 3]]
impl<'a> Uniformable for &'a [[bool; 4]]
impl Uniformable for Unit
impl Uniformable for Binding