[][src]Module luminance::vertex

Vertex formats, associated types and functions.

A vertex is a type representing a point. It’s common to find vertex positions, normals, colors or even texture coordinates. Even though you’re free to use whichever type you want, you’re limited to a range of types and dimensions. See VertexAttribType and VertexAttribDim for further details.

Structs

SemanticsDesc

Semantics description.

VertexAttribDesc

Vertex attribute format.

VertexBufferDesc

A vertex attribute descriptor in a vertex buffer.

Enums

Normalized

Whether an integral vertex type should be normalized when fetched from a shader program.

VertexAttribDim

Possible dimension of vertex attributes.

VertexAttribType

Possible type of vertex attributes.

VertexInstancing

Should vertex instancing be used for a vertex attribute?

Traits

HasSemantics

Class of types that have an associated value which type implements Semantics, defining vertex legit attributes.

Semantics

Vertex attribute semantics.

Vertex

A type that can be used as a Vertex has to implement that trait – it must provide an associated VertexDesc value via a function call. This associated value gives enough information on the types being used as attributes to reify enough memory data to align and, size and type buffers correctly.

VertexAttrib

Class of vertex attributes.

Type Definitions

VertexDesc

A VertexDesc is a list of VertexBufferDescs.