ModelData:getMeshVertexFormat

Returns the vertex format of a mesh. The vertex format defines the properties associated with each vertex (position, color, etc.), including their types and binary data layout.

format = ModelData:getMeshVertexFormat(mesh)

Arguments

NameTypeDescription
meshnumber The index of a mesh.

Returns

NameTypeDescription
formattable The vertex format of the mesh.

Notes

The format is given as a table of vertex attributes. Each attribute is a table containing the following:

{ name, type, components, blob, offset, stride }

See also