summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.h
diff options
context:
space:
mode:
authorMat M <mathew1800@gmail.com>2021-05-13 06:44:08 -0400
committerGitHub <noreply@github.com>2021-05-13 06:44:08 -0400
commitd034c830acfab16f93aefcfe65e3719f3f87cb4a (patch)
treed949567ae30952950bb55e8e2f77b4aa3414a091 /Source/Core/VideoCommon/TextureCacheBase.h
parent0ef88d4ecb103908aeaba0105767b96ef5e755c4 (diff)
parent182dfc38e6cb6256cc41f5dd3437a7e4f407ff17 (diff)
Merge pull request #9681 from iwubcode/texture-info
VideoCommon: move all texture calculations to a "TextureInfo" class
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.h')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h
index f07feadde5..4d15e7f875 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.h
+++ b/Source/Core/VideoCommon/TextureCacheBase.h
@@ -21,6 +21,7 @@
#include "VideoCommon/BPMemory.h"
#include "VideoCommon/TextureConfig.h"
#include "VideoCommon/TextureDecoder.h"
+#include "VideoCommon/TextureInfo.h"
class AbstractFramebuffer;
class AbstractStagingTexture;
@@ -216,11 +217,7 @@ public:
TCacheEntry* Load(const u32 stage);
static void InvalidateAllBindPoints() { valid_bind_points.reset(); }
static bool IsValidBindPoint(u32 i) { return valid_bind_points.test(i); }
- TCacheEntry* GetTexture(u32 address, u32 width, u32 height, const TextureFormat texformat,
- const int textureCacheSafetyColorSampleSize, u32 tlutaddr = 0,
- TLUTFormat tlutfmt = TLUTFormat::IA8, bool use_mipmaps = false,
- u32 tex_levels = 1, bool from_tmem = false, u32 tmem_address_even = 0,
- u32 tmem_address_odd = 0);
+ TCacheEntry* GetTexture(const int textureCacheSafetyColorSampleSize, TextureInfo& texture_info);
TCacheEntry* GetXFBTexture(u32 address, u32 width, u32 height, u32 stride,
MathUtil::Rectangle<int>* display_rect);
@@ -286,11 +283,11 @@ private:
TCacheEntry* GetXFBFromCache(u32 address, u32 width, u32 height, u32 stride);
- TCacheEntry* ApplyPaletteToEntry(TCacheEntry* entry, u8* palette, TLUTFormat tlutfmt);
+ TCacheEntry* ApplyPaletteToEntry(TCacheEntry* entry, const u8* palette, TLUTFormat tlutfmt);
TCacheEntry* ReinterpretEntry(const TCacheEntry* existing_entry, TextureFormat new_format);
- TCacheEntry* DoPartialTextureUpdates(TCacheEntry* entry_to_update, u8* palette,
+ TCacheEntry* DoPartialTextureUpdates(TCacheEntry* entry_to_update, const u8* palette,
TLUTFormat tlutfmt);
void StitchXFBCopy(TCacheEntry* entry_to_update);