in GLTFSDK/Inc/GLTFSDK/GLTF.h [432:452]
static uint8_t GetTypeCount(AccessorType type)
{
switch (type)
{
case TYPE_SCALAR:
return 1;
case TYPE_VEC2:
return 2;
case TYPE_VEC3:
return 3;
case TYPE_VEC4:
case TYPE_MAT2:
return 4;
case TYPE_MAT3:
return 9;
case TYPE_MAT4:
return 16;
default:
throw GLTFException("Unknown type " + std::to_string(type));
}
}