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]

[src]

Set the value of the float uniform.

impl ShaderUniform<SUInt>
[src]

[src]

Set the value of the integer uniform.

impl ShaderUniform<SUVec2>
[src]

[src]

Set the value of the vector 2 uniform.

impl ShaderUniform<SUVec3>
[src]

[src]

Set the value of the vector 3 uniform.

impl ShaderUniform<SUVec4>
[src]

[src]

Set the value of the vector 4 uniform.

impl ShaderUniform<SUMat2x2>
[src]

[src]

Set the value of the 2x2 matrix uniform.

impl ShaderUniform<SUMat3x3>
[src]

[src]

Set the value of the 3x3 matrix uniform.

impl ShaderUniform<SUMat4x4>
[src]

[src]

Set the value of the 4x4 matrix uniform.

Trait Implementations

impl<T: Clone + ?Sized> Clone for ShaderUniform<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Copy + ?Sized> Copy for ShaderUniform<T>
[src]