---
title: MTKMesh
framework: metalkit
role: symbol
role_heading: Class
path: metalkit/mtkmesh
---

# MTKMesh

A container for the vertex data of a Model I/O mesh, suitable for use in a Metal app.

## Declaration

```swift
class MTKMesh
```

## Topics

### Initialization

- [init(mesh:device:)](metalkit/mtkmesh/init(mesh:device:).md)

### Loading Meshes from an Asset

- [newMeshes(asset:device:)](metalkit/mtkmesh/newmeshes(asset:device:).md)

### Submeshes

- [submeshes](metalkit/mtkmesh/submeshes.md)

### Vertex Properties

- [vertexBuffers](metalkit/mtkmesh/vertexbuffers.md)
- [vertexCount](metalkit/mtkmesh/vertexcount.md)
- [vertexDescriptor](metalkit/mtkmesh/vertexdescriptor.md)

### Identifying Properties

- [name](metalkit/mtkmesh/name.md)

### Constants

- [Mesh Error Handling](metalkit/mesh-error-handling.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Model Handling

- [MTKMeshBuffer](metalkit/mtkmeshbuffer.md)
- [MTKMeshBufferAllocator](metalkit/mtkmeshbufferallocator.md)
- [MTKSubmesh](metalkit/mtksubmesh.md)
- [Conversion Functions](metalkit/conversion-functions.md)
- [Model Errors](metalkit/model-errors.md)
