texture_cache: Use a table instead of switch for texture formats

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.
This commit is contained in:
ReinUsesLisp
2019-11-09 03:26:30 -03:00
parent 48a1687f51
commit 80eacdf89b
9 changed files with 290 additions and 261 deletions

View File

@ -127,6 +127,8 @@ add_library(video_core STATIC
shader/track.cpp
surface.cpp
surface.h
texture_cache/format_lookup_table.cpp
texture_cache/format_lookup_table.h
texture_cache/surface_base.cpp
texture_cache/surface_base.h
texture_cache/surface_params.cpp