---
title: "setInstanceTransforms(_:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/lowlevelmeshinstance/setinstancetransforms(_:)"
---

# setInstanceTransforms(_:)

Assigns or clears the transform buffer for GPU instancing.

## Declaration

```swift
final func setInstanceTransforms(_ instanceTransforms: LowLevelInstanceTransformResource?) throws(LowLevelRenderContextError)
```

## Parameters

- `instanceTransforms`: The transform buffer to assign, or nil to revert to single-instance rendering.

## Discussion

Discussion note: LowLevelRenderContextError if instanceTransforms is incompatible with this instance.

## See Also

### Positioning instances

- [instanceTransforms](realitykit/lowlevelmeshinstance/instancetransforms.md)
