replace(_:)
Provides full read-write CPU access, replacing all transform data.
Declaration
final func replace<R, E>(_ body: @_lifetime(0: copy 0) (inout MutableSpan<float4x4>) throws(E) -> R) throws(E) -> R where E : Error, R : ~CopyableParameters
- body:
A closure that receives a
MutableSpan<float4x4>for the new transform data. The span is valid only for the duration of the closure.