<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLPrimitiveType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@E@MTLPrimitiveType"
  },
  "title" : "MTLPrimitiveType"
}
-->

# MTLPrimitiveType

The geometric primitive type for drawing commands.

```
enum MTLPrimitiveType
```

## Topics

### Geometric primitive types

[`MTLPrimitiveType.point`](/documentation/Metal/MTLPrimitiveType/point)

Rasterize a point at each vertex. The vertex shader needs to provide `[[point_size]]`, or the point size is undefined.

[`MTLPrimitiveType.line`](/documentation/Metal/MTLPrimitiveType/line)

Rasterize a line between each separate pair of vertices, resulting in a series of unconnected lines. If there are an odd number of vertices, the last vertex is ignored.

[`MTLPrimitiveType.lineStrip`](/documentation/Metal/MTLPrimitiveType/lineStrip)

Rasterize a line between each pair of adjacent vertices, resulting in a series of connected lines (also called a polyline).

[`MTLPrimitiveType.triangle`](/documentation/Metal/MTLPrimitiveType/triangle)

For every separate set of three vertices, rasterize a triangle. If the number of vertices is not a multiple of three, either one or two vertices is ignored.

[`MTLPrimitiveType.triangleStrip`](/documentation/Metal/MTLPrimitiveType/triangleStrip)

For every three adjacent vertices, rasterize a triangle.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)