diff options
| author | NeoBrainX <NeoBrainX@gmail.com> | 2012-05-12 13:50:03 +0200 |
|---|---|---|
| committer | NeoBrainX <NeoBrainX@gmail.com> | 2012-05-13 17:41:04 +0200 |
| commit | a5e68ab10e2655853e7063ce3c7ce1aa31df9db8 (patch) | |
| tree | 73f39299ad5a3e1accc4076bd11228819d3c15f1 /Source/Core/VideoCommon/Src/TextureCacheBase.h | |
| parent | a8ad59ee3e4345b9cc2fcf9bfe28e385a7e443c6 (diff) | |
TextureCacheBase: Support dumping individual mipmaps.
Diffstat (limited to 'Source/Core/VideoCommon/Src/TextureCacheBase.h')
| -rw-r--r-- | Source/Core/VideoCommon/Src/TextureCacheBase.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/Src/TextureCacheBase.h b/Source/Core/VideoCommon/Src/TextureCacheBase.h index 507af0e5ac..a1d1bfb54c 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; @@ -113,7 +113,6 @@ public: unsigned int expanded_width, unsigned int tex_levels, PC_TexFormat pcfmt) = 0; virtual TCacheEntryBase* CreateRenderTargetTexture(unsigned int scaled_tex_w, unsigned int scaled_tex_h) = 0; - static TCacheEntryBase* Load(unsigned int stage, u32 address, unsigned int width, unsigned int height, int format, unsigned int tlutaddr, int tlutfmt, bool UseNativeMips, unsigned int maxlevel, bool from_tmem); static void CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFormat, unsigned int srcFormat, @@ -128,7 +127,7 @@ protected: private: static PC_TexFormat LoadCustomTexture(u64 tex_hash, int texformat, unsigned int& width, unsigned int& height, u8* dest); - static void DumpTexture(TCacheEntryBase* entry); + static void DumpTexture(TCacheEntryBase* entry, unsigned int level); typedef std::map<u32, TCacheEntryBase*> TexCache; |
