<!--
{
  "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/MDLMesh/init(vertexBuffers:vertexCount:descriptor:submeshes:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)MDLMesh(im)initWithVertexBuffers:vertexCount:descriptor:submeshes:"
  },
  "title" : "init(vertexBuffers:vertexCount:descriptor:submeshes:)"
}
-->

# init(vertexBuffers:vertexCount:descriptor:submeshes:)

Creates a mesh by unifying vertex data from multiple sources with the specified parameters.

```
init(vertexBuffers: [any MDLMeshBuffer], vertexCount: Int, descriptor: MDLVertexDescriptor, submeshes: [MDLSubmesh])
```

## Parameters

`vertexBuffers`

An array of objects, each of which provides a separate source of vertex information for the mesh.

`vertexCount`

The number of vertices in the mesh.

`descriptor`

An object describing the type and layout of vertex attribute data in the vertex buffers.

`submeshes`

An array of submesh objects, each of which provides index buffer and material information describing how some or all of the mesh’s vertex data is to be rendered.

## Return Value

A new mesh object.

## Discussion

Use this initializer to create a mesh from vertex data that describes separate vertex attributes in separate arrays with matching indices (a structure of arrays).

---

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)