pub struct Uniform<T> { /* private fields */ }Expand description
WebGL2 uniform.
This associates an identifier for a WebGL2 uniform with a data value that can be accessed and modified using inner mutability.
Usually, the type T would be Copy.
Implementations§
Trait Implementations§
source§impl<T: UniformType + Copy> UniformValue for Uniform<T>
impl<T: UniformType + Copy> UniformValue for Uniform<T>
source§fn set_uniform(&self, gl: &WebGl2RenderingContext, program: &WebGlProgram)
fn set_uniform(&self, gl: &WebGl2RenderingContext, program: &WebGlProgram)
Set the value of the uniform. Read more
Auto Trait Implementations§
impl<T> !Freeze for Uniform<T>
impl<T> !RefUnwindSafe for Uniform<T>
impl<T> Send for Uniform<T>where
T: Send,
impl<T> !Sync for Uniform<T>
impl<T> Unpin for Uniform<T>where
T: Unpin,
impl<T> UnwindSafe for Uniform<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more