---
title: "makeInstanceTransformResource(instanceCapacity:)"
framework: RealityKit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "realitykit/lowlevelrendercontextstandalone/makeinstancetransformresource(instancecapacity:)"
---

# makeInstanceTransformResource(instanceCapacity:)

Creates a transform buffer resource for GPU instancing.

## Declaration

```swift
final func makeInstanceTransformResource(instanceCapacity: Int) throws -> LowLevelInstanceTransformResource
```

## Parameters

- `instanceCapacity`: The maximum number of instances the buffer holds.

## Return Value

Return Value A newly created LowLevelInstanceTransformResource.

## Discussion

Discussion The buffer stores up to instanceCapacity model-to-local transforms as float4x4 values. Assign the result to a LowLevelMeshInstance via setInstanceTransforms(_:) to enable GPU instancing. note: An error if the allocation fails.
