summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.h
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2025-03-01 21:55:07 -0600
committeriwubcode <iwubcode@users.noreply.github.com>2025-06-06 23:03:02 -0500
commit7afa9e6c6f0653603b359abecd191012024e0019 (patch)
tree36ba871f3778fab13fde718c9f10a4366fffdf5f /Source/Core/VideoCommon/TextureCacheBase.h
parent12d178a8dfdf530a524c86bc96ff81a679641788 (diff)
VideoCommon: use CustomResourceManager in the texture cache and hook up to our hires textures
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.h')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h
index 532feaca7d..dd6cb46368 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.h
+++ b/Source/Core/VideoCommon/TextureCacheBase.h
@@ -24,6 +24,7 @@
#include "VideoCommon/AbstractTexture.h"
#include "VideoCommon/Assets/CustomAsset.h"
#include "VideoCommon/BPMemory.h"
+#include "VideoCommon/HiresTextures.h"
#include "VideoCommon/TextureConfig.h"
#include "VideoCommon/TextureDecoder.h"
#include "VideoCommon/TextureInfo.h"
@@ -167,8 +168,8 @@ struct TCacheEntry
std::string texture_info_name = "";
- std::vector<VideoCommon::CachedAsset<VideoCommon::GameTextureAsset>> linked_game_texture_assets;
- std::vector<VideoCommon::CachedAsset<VideoCommon::CustomAsset>> linked_asset_dependencies;
+ VideoCommon::CustomAsset::TimeType last_load_time;
+ std::shared_ptr<HiresTexture> hires_texture;
explicit TCacheEntry(std::unique_ptr<AbstractTexture> tex,
std::unique_ptr<AbstractFramebuffer> fb);
@@ -351,11 +352,10 @@ private:
void SetBackupConfig(const VideoConfig& config);
- RcTcacheEntry
- CreateTextureEntry(const TextureCreationInfo& creation_info, const TextureInfo& texture_info,
- int safety_color_sample_size,
- std::vector<std::shared_ptr<VideoCommon::TextureData>> assets_data,
- bool custom_arbitrary_mipmaps, bool skip_texture_dump);
+ RcTcacheEntry CreateTextureEntry(const TextureCreationInfo& creation_info,
+ const TextureInfo& texture_info, int safety_color_sample_size,
+ VideoCommon::CustomTextureData* custom_texture_data,
+ bool custom_arbitrary_mipmaps, bool skip_texture_dump);
RcTcacheEntry GetXFBFromCache(u32 address, u32 width, u32 height, u32 stride);