diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2023-06-24 02:02:53 -0500 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2023-07-02 12:50:07 -0500 |
| commit | a93e6e73972cb5ddd471c46282e2d14011d1b2d0 (patch) | |
| tree | 7beb81ddcf53259ccb1ed4dc5f219b2e3a49da19 /Source/Core/VideoCommon/TextureCacheBase.h | |
| parent | c04536c5d0d9312bccdf5ba2b86c7336dd74babd (diff) | |
VideoCommon: add support for allowing a TextureCache entry to be associated with multiple assets
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.h')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.h | 11 |
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); |
