---
title: "read(commandBuffer:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/lowlevelinstancetransformresource/read(commandbuffer:)"
---

# read(commandBuffer:)

Returns a MTLBuffer for GPU-side read access to the transform data.

## Declaration

```swift
final func read(commandBuffer: (any MTLCommandBuffer)?) -> any MTLBuffer
```

## Parameters

- `commandBuffer`: The command buffer using this buffer, or nil to skip synchronization.

## Return Value

Return Value An MTLBuffer containing the current transform data.

## See Also

### Reading transform data

- [read(_:)](realitykit/lowlevelinstancetransformresource/read(_:).md)
