Struct glitter::vertex_data::VertexAttributeType [] [src]

pub struct VertexAttributeType {
    pub data: DataType,
    pub components: i8,
    pub normalize: bool,
}

Used to specify type of a vertex attribute. The size of the vertex attribute is size_of(data) * components.

Fields

The type of data that makes up this vertex attribute.

The number of data components that make up this vertex attribute.

If the data type is fixed-point data, indicates if the data should be normalized when being accessed. true indicates that the vertex attribute should be normalized when being accessed.

Trait Implementations

impl Clone for VertexAttributeType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more