Instance Property

indexBuffer

An object that provides index data for the submesh.

Declaration

@property(nonatomic, readonly, retain) id<MDLMeshBuffer> indexBuffer;

Discussion

An index buffer contains indices, each of which identifies a vertex in the vertex buffers of the MDLMesh object containing the mesh. Together with the submesh’s geometryType property, the sequence of indices determines how to interpret the mesh’s vertex data to construct the geometric form for a portion of the mesh.

See Also

Working with a Submesh’s Index Buffer

indexCount

The number of indices in the submesh’s index buffer.

indexType

The data type for each element in the submesh’s index buffer.

geometryType

The type of geometric primitives described by the submesh’s index buffer.

topology

A description of how the non-uniform layout of the submesh’s index buffer defines the shape of the mesh.