indexBuffer
A buffer that contains indices for the vertices that compose the triangle list.
Declaration
var indexBuffer: (any MTLBuffer)? { get set }Discussion
This property can be nil, in which case the vertex data defines the triangle list implicitly. You need to store indices in a packed data format.