---
title: primitiveType
framework: metalkit
role: symbol
role_heading: Instance Property
path: metalkit/mtksubmesh/primitivetype
---

# primitiveType

The primitive type with which to draw the submesh object.

## Declaration

```swift
var primitiveType: MTLPrimitiveType { get }
```

## Discussion

Discussion Use this value for the primitiveType parameter in a call to drawIndexedPrimitives(type:indexCount:indexType:indexBuffer:indexBufferOffset:).

## See Also

### Properties used to Draw Indexed Primitives

- [indexBuffer](metalkit/mtksubmesh/indexbuffer.md)
- [indexCount](metalkit/mtksubmesh/indexcount.md)
- [indexType](metalkit/mtksubmesh/indextype.md)
