diff options
| author | Markus Wick <markus+github@selfnet.de> | 2015-01-08 13:29:45 +0100 |
|---|---|---|
| committer | Markus Wick <markus+github@selfnet.de> | 2015-01-08 13:29:45 +0100 |
| commit | f0f8384639ac0c3e6dbc8ec16338e765591eda3a (patch) | |
| tree | 21780b6839fe7c96e17b9a358f9544424dc9a720 /Source/Core/VideoCommon/TextureCacheBase.h | |
| parent | 25c6f6e6a1603b833954461a10966edeaf58eae8 (diff) | |
| parent | c6dd5044d6accb22441893afaa1338b0c93b769d (diff) | |
Merge pull request #1785 from degasus/custom_texture
VideoCommon: Custom texture handling
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.h')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h index c45894320c..e3eb6a00fa 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.h +++ b/Source/Core/VideoCommon/TextureCacheBase.h @@ -116,13 +116,12 @@ public: protected: TextureCache(); - static GC_ALIGNED16(u8 *temp); - static unsigned int temp_size; + static GC_ALIGNED16(u8 *temp); + static size_t 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); + static void DumpTexture(TCacheEntryBase* entry, std::string basename, unsigned int level); + static void CheckTempSize(size_t required_size); static TCacheEntryBase* AllocateRenderTarget(unsigned int width, unsigned int height); static void FreeRenderTarget(TCacheEntryBase* entry); |
