Module crayon::video::assets::mesh

source ·
Expand description

Immutable or dynamic vertex and index data.

Modules

Structs

Continuous data of vertices and its indices.
The setup parameters of mesh object.
The details of a vertex attribute.
VertexLayout defines how a single vertex structure looks like. A vertex layout is a collection of vertex components, and each vertex component consists of a vertex attribute and the vertex format.
Helper structure to build a vertex layout.

Enums

Vertex indices can be either 16- or 32-bit. You should always prefer 16-bit indices over 32-bit indices, since the latter may have performance penalties on some platforms, and they take up twice as much memory.
Hint abouts the intended update strategy of the data.
Mesh index.
Defines how the input vertex data is used to assemble primitives.
The data type in the vertex component.