Archive 17/01/2023.

Vertex elements order?

Enhex

A model vertex’s elements need to be in a specific order?
Is it documented anywhere?

cadaver

Yes, the order is in GraphicsDefs.h element enum (elements can be included or left out, but order must stay). You can also check the element offsets from VertexBuffer after you create it.

I’m currently working on freeform vertex declarations, after which this shouldn’t be an issue anymore, but the API will break/change in some ways.