readVertices(at:_:)
Reads a vertex buffer synchronously on the CPU. The buffer is only valid for the lifetime of the callback.
Declaration
final func readVertices<R, E>(at index: Int, _ body: (RawSpan) throws(E) -> R) throws(E) -> R where E : Error, R : ~CopyableParameters
- index:
The vertex buffer index to read.
- body:
A closure that receives a read-only span over the buffer’s bytes.