Added support for more vertex formats and 32-bit indices