Contents

readIndices(_:)

Reads the index buffer synchronously on the CPU. The buffer is only valid for the lifetime of the callback.

Declaration

final func readIndices<R, E>(_ body: (RawSpan) throws(E) -> R) throws(E) -> R where E : Error, R : ~Copyable

Parameters

  • body:

    A closure that receives a read-only span over the index buffer’s bytes.

Discussion

See Also

Accessing index data