Enumeration

MDLGeometryType

Types of geometric primitives for rendering a submesh, used by the geometryType property.

Declaration

typedef enum MDLGeometryType : NSInteger {
    ...
} MDLGeometryType;

Topics

Constants

MDLGeometryTypePoints

Each index in the submesh refers to a vertex to be rendered as a single point.

MDLGeometryTypeLines

Each pair of consecutive indices in the submesh refers to two vertices to be rendered as a line segment.

MDLGeometryTypeTriangles

Each set of three consecutive indices in the submesh refers to three vertices to be rendered as a triangle.

MDLGeometryTypeTriangleStrips

The first three consecutive indices in the submesh refer to three vertices to be rendered as a triangle. Each subsequent index refers to another vertex that completes a triangle formed by connecting it to the previous two vertices.

MDLGeometryTypeQuads

Each set of four consecutive indices in the submesh refers to four vertices to be rendered as a quadrilateral.

MDLGeometryTypeVariableTopology

The submesh’s index buffer does not contain a uniform set of primitives.