VertexPosition

A helper template to define a simple vertex type from a vector type. By default the unique field will be name "position". Note: it's important the struct isn't larger than the vector itself.

struct VertexPosition (
Vec
string fieldName = "position"
) if (
isVector!Vec
)

Examples

VertexSpecification!(VertexPosition!vec3f);

Meta