mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2026-01-07 06:59:12 +01:00
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:
parent
48a1687f51
commit
80eacdf89b
9 changed files with 290 additions and 261 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue