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

# mesh

The parent mesh containing the vertex data of this submesh.

## Declaration

```swift
weak var mesh: MTKMesh? { get }
```

## Discussion

Discussion The buffer of this parent mesh should be set in the encoder before a call to drawIndexedPrimitives(type:indexCount:indexType:indexBuffer:indexBufferOffset:) is made.
