diff options
Diffstat (limited to 'Source/Core/VideoCommon/Src/TextureCacheBase.h')
| -rw-r--r-- | Source/Core/VideoCommon/Src/TextureCacheBase.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/TextureCacheBase.h b/Source/Core/VideoCommon/Src/TextureCacheBase.h index 2924c5871f..f67ad518c5 100644 --- a/Source/Core/VideoCommon/Src/TextureCacheBase.h +++ b/Source/Core/VideoCommon/Src/TextureCacheBase.h @@ -84,7 +84,7 @@ public: virtual ~TCacheEntryBase(); virtual void Bind(unsigned int stage) = 0; - virtual bool Save(const char filename[]) = 0; + virtual bool Save(const char filename[], unsigned int level) = 0; virtual void Load(unsigned int width, unsigned int height, unsigned int expanded_width, unsigned int level, bool autogen_mips) = 0; @@ -124,8 +124,14 @@ protected: TextureCache(); static GC_ALIGNED16(u8 *temp); + static unsigned int temp_size; private: + static bool CheckForCustomTextureLODs(u64 tex_hash, int texformat, unsigned int levels); + static PC_TexFormat LoadCustomTexture(u64 tex_hash, int texformat, unsigned int level, unsigned int& width, unsigned int& height); + static void DumpTexture(TCacheEntryBase* entry, unsigned int level); + + typedef std::map<u32, TCacheEntryBase*> TexCache; static TexCache textures; |
