Instance Property

geometryType

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

Declaration

@property(nonatomic, readonly) MDLGeometryType geometryType;

Discussion

This property determines how the sequence of indices in the submesh’s index buffer should be interpreted for rendering. For example, if the geometry type is MDLGeometryTypeTriangles, each triangle to be rendered comes from an independent set of three indices, but if the geometry type is MDLGeometryTypeTriangleStrips, triangles to be rendered can come from overlapping sets of indices in the sequence. If the geometry type is MDLGeometryTypeVariableTopology, the topology property describes the non-uniform layout of the index buffer.

See Also

Working with a Submesh’s Index Buffer

indexBuffer

An object that provides index data for the submesh.

indexCount

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

indexType

The data type for each element in 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.