Contents

indexBufferOffset

The offset, in bytes, to the index data in the buffer.

Declaration

var indexBufferOffset: Int { get set }

Discussion

The offset needs to be a multiple of the index data type you configure with the indexType property. You also need to align the offset to both the index type’s size and the platform’s buffer alignment requirement.