VideoCommon: rewrite custom textures

This commit is contained in:
degasus
2014-12-22 12:53:03 +01:00
parent a09d854636
commit 51bfc4c52a
4 changed files with 146 additions and 167 deletions

View File

@ -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 CheckTempSize(size_t required_size);
static TCacheEntryBase* AllocateRenderTarget(unsigned int width, unsigned int height);
static void FreeRenderTarget(TCacheEntryBase* entry);