Trait tetra::graphics::UniformValue[][src]

pub trait UniformValue { }

Implemented for types that can be passed as a uniform value to a shader.

As the implementation of this trait currently interacts directly with the platform layer, it cannot be implemented outside of Tetra itself. This may change in the future!

Implementations on Foreign Types

impl UniformValue for i32[src]

Can be accessed as an int in your shader.

impl UniformValue for u32[src]

Can be accessed as a uint in your shader.

impl UniformValue for f32[src]

Can be accessed as a float in your shader.

impl UniformValue for Vec2<f32>[src]

Can be accessed as a vec2 in your shader.

impl UniformValue for Vec3<f32>[src]

Can be accessed as a vec3 in your shader.

impl UniformValue for Vec4<f32>[src]

Can be accessed as a vec4 in your shader.

impl UniformValue for Mat2<f32>[src]

Can be accessed as a mat2 in your shader.

impl UniformValue for Mat3<f32>[src]

Can be accessed as a mat3 in your shader.

impl UniformValue for Mat4<f32>[src]

Can be accessed as a mat4 in your shader.

impl<'a, T> UniformValue for &'a T where
    T: UniformValue
[src]

Any type that can be passed by value to a shader can also be passed by reference.

Loading content...

Implementors

impl UniformValue for Color[src]

Can be accessed as a vec4 in your shader.

impl UniformValue for Texture[src]

Can be accessed via a sampler2D in your shader.

Loading content...