Struct opengl_graphics::shader_uniforms::ShaderUniform [−][src]
pub struct ShaderUniform<T: ?Sized> { /* fields omitted */ }
Describes a shader uniform of a given type.
Methods
impl ShaderUniform<SUFloat>[src]
impl ShaderUniform<SUFloat>pub fn set(&self, gl: &GlGraphics, value: f32)[src]
pub fn set(&self, gl: &GlGraphics, value: f32)Set the value of the float uniform.
impl ShaderUniform<SUInt>[src]
impl ShaderUniform<SUInt>pub fn set(&self, gl: &GlGraphics, value: i32)[src]
pub fn set(&self, gl: &GlGraphics, value: i32)Set the value of the integer uniform.
impl ShaderUniform<SUVec2>[src]
impl ShaderUniform<SUVec2>impl ShaderUniform<SUVec3>[src]
impl ShaderUniform<SUVec3>impl ShaderUniform<SUVec4>[src]
impl ShaderUniform<SUVec4>impl ShaderUniform<SUMat2x2>[src]
impl ShaderUniform<SUMat2x2>impl ShaderUniform<SUMat3x3>[src]
impl ShaderUniform<SUMat3x3>impl ShaderUniform<SUMat4x4>[src]
impl ShaderUniform<SUMat4x4>Trait Implementations
impl<T: Clone + ?Sized> Clone for ShaderUniform<T>[src]
impl<T: Clone + ?Sized> Clone for ShaderUniform<T>fn clone(&self) -> ShaderUniform<T>[src]
fn clone(&self) -> ShaderUniform<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<T: Copy + ?Sized> Copy for ShaderUniform<T>[src]
impl<T: Copy + ?Sized> Copy for ShaderUniform<T>Auto Trait Implementations
impl<T: ?Sized> Send for ShaderUniform<T> where
T: Send,
impl<T: ?Sized> Send for ShaderUniform<T> where
T: Send, impl<T: ?Sized> Sync for ShaderUniform<T> where
T: Sync,
impl<T: ?Sized> Sync for ShaderUniform<T> where
T: Sync,