setIndices method
Implementation
void setIndices(gpu.BufferView indices, gpu.IndexType indexType) {
_indices = indices;
_indexType = indexType;
switch (indexType) {
case gpu.IndexType.int16:
_indexCount = indices.lengthInBytes ~/ 2;
case gpu.IndexType.int32:
_indexCount = indices.lengthInBytes ~/ 4;
}
}