Closed zdimension closed 9 months ago
No there's no plan to support that. Interleaved data is a legacy thing, at least I have never seen the interleaved data make a difference. Probably modern hardware/OpenGL implementations can do this optimisation, so no need for you to do that manually, just create a buffer for each vertex attribute 🙂
Glium allows doing this:
Currently, three-d only supports vertex buffers with elements of primitive types (buffer of float, buffer of int, ...). Any kind of composite-type element requires creating multiple buffers, one per attribute. Interleaved data is usually better performance-wise. Are there any plans on supporting that? Currently, the
DataType
trait is private anyways.