I think this can be done in VideoCommen directly by comparing https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/VideoCommon/NativeVertexFormat.h#L70