upload

abstract fun upload(type: IndexType, data: ByteBuffer): GpuBufferSlice

Uploads index data.

The returned slice's byte offset must be aligned to IndexType.bytes for type.