Expand description

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

Semantics description.

Vertex attribute format.

A vertex attribute descriptor in a vertex buffer.

Enums

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

Possible dimension of vertex attributes.

Possible type of vertex attributes.

Should vertex instancing be used for a vertex attribute?

Traits

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

Vertex attribute semantics.

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.

Class of vertex attributes.

Type Definitions