replaceIndices(_:)
Replaces the index buffer synchronously on the CPU. The buffer’s contents are unspecified; you must populate the buffer with valid data.
Declaration
final func replaceIndices<R, E>(_ body: @_lifetime(0: copy 0) (inout MutableRawSpan) throws(E) -> R) throws(E) -> R where E : Error, R : ~CopyableParameters
- body:
A closure that receives a mutable span over the index buffer’s bytes to fully populate.