summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.h
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2023-07-02 20:14:32 +0200
committerGitHub <noreply@github.com>2023-07-02 20:14:32 +0200
commit6d7bf60071446e3ed0fc8fa77e1149ccb73d85b9 (patch)
treea6b4e742eb344a1a1236d4aaf1bd8a190ad06e93 /Source/Core/VideoCommon/TextureCacheBase.h
parenteedc1144c1c06487d83d19a21341b4b9e9ff0e71 (diff)
parenta93e6e73972cb5ddd471c46282e2d14011d1b2d0 (diff)
Merge pull request #11991 from iwubcode/tcache_multiple_texture_dependencies
VideoCommon: allow multiple texture assets to associate with a texture cache entry
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.h')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h
index f248d2b49f..db5e11ea29 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.h
+++ b/Source/Core/VideoCommon/TextureCacheBase.h
@@ -167,7 +167,7 @@ struct TCacheEntry
std::string texture_info_name = "";
- VideoCommon::CachedAsset<VideoCommon::GameTextureAsset> linked_asset;
+ std::vector<VideoCommon::CachedAsset<VideoCommon::GameTextureAsset>> linked_game_texture_assets;
explicit TCacheEntry(std::unique_ptr<AbstractTexture> tex,
std::unique_ptr<AbstractFramebuffer> fb);
@@ -346,10 +346,11 @@ private:
void SetBackupConfig(const VideoConfig& config);
- RcTcacheEntry CreateTextureEntry(const TextureCreationInfo& creation_info,
- const TextureInfo& texture_info, int safety_color_sample_size,
- const VideoCommon::CustomTextureData* custom_texture_data,
- bool custom_arbitrary_mipmaps);
+ RcTcacheEntry
+ CreateTextureEntry(const TextureCreationInfo& creation_info, const TextureInfo& texture_info,
+ int safety_color_sample_size,
+ std::vector<std::shared_ptr<VideoCommon::CustomTextureData>> assets_data,
+ bool custom_arbitrary_mipmaps);
RcTcacheEntry GetXFBFromCache(u32 address, u32 width, u32 height, u32 stride);