Use a large flat array to look up texture formats. This allows us to properly implement formats with different component types. It should also be faster.
Use a large flat array to look up texture formats. This allows us to properly implement formats with different component types. It should also be faster.