mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-29 02:27:52 -05: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:
@ -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
|
||||
|
Reference in New Issue
Block a user