Trait glitter::vertex_data::VertexPrimitive
[−]
[src]
pub unsafe trait VertexPrimitive: Copy { fn data_type() -> DataType; }
A single, basic value that can be composed to make a VertexDatum
. Scalar values are an example of a
VertexPrimitive
.
Safety
This type will be transmuted to a slice according to the value returned
by the data_type
method.
Implementing this method incorrectly will lead to memory unsafety.