When GLB parser creates an index buffer, it passes a typed array to the constructor, instead of an array buffer. This results in view being a storage in the index buffer, instead of array buffer.
|
const indexBuffer = new IndexBuffer(device, indexFormat, indices.length, BUFFER_STATIC, indices); |
When GLB parser creates an index buffer, it passes a typed array to the constructor, instead of an array buffer. This results in view being a storage in the index buffer, instead of array buffer.
engine/src/framework/parsers/glb-parser.js
Line 835 in dc20e8e