How Magnum does GFX API enum mapping
Engines supporting more than one graphics backend very often need to translate various enum values — pixel formats, primitive types etc. — from a generic API-agnostic value to the one used by a particular implementation, in the fastest-possible and most robust way.