diff options
| author | NeoBrainX <NeoBrainX@gmail.com> | 2012-05-22 08:14:33 +0200 |
|---|---|---|
| committer | NeoBrainX <NeoBrainX@gmail.com> | 2012-05-22 08:14:49 +0200 |
| commit | 4131ca8d386eb37533eb2863214bbc76de67e389 (patch) | |
| tree | 35e15f462a9cb581fb6ccb91f948432470dbf997 /Source/Core/VideoCommon/Src/TextureCacheBase.h | |
| parent | 1bc5f41e40e604ef6c1d1e84617c13fdf40e04d1 (diff) | |
| parent | 54aeec7a8ff6b6e5d050637b6cce8df6d9a8b633 (diff) | |
Merge branch 'hires-tex-improvements'
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; |
