mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-16 13:17:54 +00: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
c6afe25477
commit
c884dc8af2
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