<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ModelIO",
  "identifier" : "/documentation/ModelIO/MDLMeshBuffer/type",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(pl)MDLMeshBuffer(py)type"
  },
  "title" : "type"
}
-->

# type

The type of data contained in a buffer.

```
var type: MDLMeshBufferType { get }
```

## Discussion

A buffer can contain per-vertex data for one or more vertex attributes of a [`MDLMesh`](/documentation/ModelIO/MDLMesh) object ([`MDLMeshBufferType.vertex`](/documentation/ModelIO/MDLMeshBufferType/vertex)), or index data for a [`MDLSubmesh`](/documentation/ModelIO/MDLSubmesh) object ([`MDLMeshBufferType.index`](/documentation/ModelIO/MDLMeshBufferType/index)).

---

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)