summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.h
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2014-09-04 22:58:01 +0200
committerPierre Bourdon <delroth@gmail.com>2014-09-04 22:58:01 +0200
commitf9650c52f8f6dcf5bdb78b9e114a100bf83c19b1 (patch)
tree11f020037c163c94775a79763ae11a5144ba46e8 /Source/Core/VideoCommon/TextureCacheBase.h
parent830a03c540c8c76023cd66751c735dc50245e473 (diff)
parentd8d9bc8c6c679d86fef3b0f3f547ea584d30c561 (diff)
Merge pull request #484 from kayru/render_target_pool
Render: Implemented simple render target pool
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.h')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h
index f5229f72ff..eb13096624 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.h
+++ b/Source/Core/VideoCommon/TextureCacheBase.h
@@ -119,9 +119,14 @@ private:
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 TCacheEntryBase* AllocateRenderTarget(unsigned int width, unsigned int height);
+ static void FreeRenderTarget(TCacheEntryBase* entry);
+
typedef std::map<u32, TCacheEntryBase*> TexCache;
+ typedef std::vector<TCacheEntryBase*> RenderTargetPool;
static TexCache textures;
+ static RenderTargetPool render_target_pool;
// Backup configuration values
static struct BackupConfig