mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-15 07:54:58 +00:00
e22816a5bb
Some games bind incompatible texture types to certain types. For example Astral Chain binds a 2D texture with 1 layer (non-array) to a cubemap slot (that's how it's used in the shader). After testing this in hardware, the expected "undefined behavior" is to report all pixels as black. We already have a path for reporting black textures in the texture cache. When textures types are incompatible, this commit binds these kind of textures. This is done on the API agnostic texture cache so no extra code has to be inserted on OpenGL or Vulkan. As a side effect, this fixes invalidations of ASTC textures on Astral Chain. This happened because yuzu detected a cube texture and forced 6 faces, generating a texture larger than what the TIC reported. |
||
---|---|---|
.. | ||
copy_params.h | ||
format_lookup_table.cpp | ||
format_lookup_table.h | ||
surface_base.cpp | ||
surface_base.h | ||
surface_params.cpp | ||
surface_params.h | ||
surface_view.cpp | ||
surface_view.h | ||
texture_cache.h |