read(_:)
Provides read-only CPU access to the transform data.
Declaration
final func read<R, E>(_ body: (consuming Span<float4x4>) throws(E) -> R) throws(E) -> R where E : Error, R : ~CopyableParameters
- body:
A closure that receives a
Span<float4x4>over the current transform data. The span is valid only for the duration of the closure.