The second buffer has an array stride of 12, but a componentCount of 4. When applying it to an existing mesh using Mesh.setVertexState(), it threw the following error:
RangeError: Offset is outside the bounds of the DataView
This isn't very helpful, it should make it clear that the provided component count and format doesn't fit in the provided arrayStride.
I just created the following
VertexState
:The second buffer has an array stride of 12, but a
componentCount
of 4. When applying it to an existing mesh usingMesh.setVertexState()
, it threw the following error:This isn't very helpful, it should make it clear that the provided component count and format doesn't fit in the provided arrayStride.