setIndexRange(indexOffset:indexCount:)
Updates the first index and index count for this mesh part.
Declaration
final func setIndexRange(indexOffset: Int, indexCount: Int) throws(LowLevelRenderContextError)Parameters
- indexOffset:
The byte offset of the first index within the index buffer.
- indexCount:
The number of indices to use for this part.
Discussion
Throws LowLevelRenderContextError if the resulting range falls outside the mesh resource’s index buffer.