<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelRenderContextStandalone/makeMeshInstanceArray(renderTargets:count:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer31LowLevelRenderContextStandaloneC21makeMeshInstanceArray13renderTargets5countAA0dejkL0CAA0deF6TargetC13DescriptorSetV_SitKF"
  },
  "title" : "makeMeshInstanceArray(renderTargets:count:)"
}
-->

# makeMeshInstanceArray(renderTargets:count:)

Creates a fixed-capacity ordered collection of mesh instances for the given render targets.

```
final func makeMeshInstanceArray(renderTargets: LowLevelRenderTarget.DescriptorSet, count: Int) throws -> LowLevelMeshInstanceArray
```

## Parameters

`renderTargets`

The set of render target descriptors this array must be compatible with.

`count`

The maximum number of mesh instance slots to allocate.

## Return Value

A newly created [`LowLevelMeshInstanceArray`](/documentation/RealityKit/LowLevelMeshInstanceArray).

## Discussion

Pass the resulting array to [`setMeshInstances(_:at:)`](/documentation/RealityKit/LowLevelRenderer/setMeshInstances(_:at:)) to submit it for rendering.

> Throws: An error if allocation fails.

---

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)