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

# read(_:)

Provides read-only CPU access to the transform data.

## Declaration

```swift
final func read<R, E>(_ body: (consuming Span<float4x4>) throws(E) -> R) throws(E) -> R where E : Error, R : ~Copyable
```

## Parameters

- `body`: A closure that receives a Span<float4x4> over the current transform data. The span is valid only for the duration of the closure.

## See Also

### Reading transform data

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