Trait glitter::uniform_data::UniformDatum [] [src]

pub unsafe trait UniformDatum {
    fn uniform_datum_type() -> UniformDatumType;
}

A single uniform value, which corresponds to a single primitive GLSL uniform type.

Safety

This type will be transmuted to a slice according to the value returned by the uniform_datum_type method. Implementing this method incorrectly will lead to memory unsafety.

Required Methods

Return the data type this datum corresponds to.

Safety

An instance of this type must match the size and memory layout specified by the returned UniformDatumType.

Implementations on Foreign Types

impl<T: UniformPrimitive> UniformDatum for [T; 1]
[src]

impl<T: UniformPrimitive> UniformDatum for [T; 2]
[src]

impl<T: UniformPrimitive> UniformDatum for [T; 3]
[src]

impl<T> UniformDatum for [T; 4] where
    T: UniformPrimitive
[src]

impl UniformDatum for [[f32; 2]; 2]
[src]

impl UniformDatum for [[f32; 3]; 3]
[src]

impl UniformDatum for [[f32; 4]; 4]
[src]

impl<T: UniformPrimitive> UniformDatum for Vector2<T>
[src]

impl<T: UniformPrimitive> UniformDatum for Vector3<T>
[src]

impl<T: UniformPrimitive> UniformDatum for Vector4<T>
[src]

impl UniformDatum for Matrix2<f32>
[src]

impl UniformDatum for Matrix3<f32>
[src]

impl UniformDatum for Matrix4<f32>
[src]

Implementors