summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/ProgramShaderCache.h
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2017-06-24 19:20:34 +1000
committerStenzek <stenzek@gmail.com>2017-07-20 17:46:59 +1000
commit62a901508b1fd23eb386a3d108950ab061bbc19a (patch)
tree3b5010ca6a7e952915d78d2940bcc853f866847b /Source/Core/VideoBackends/OGL/ProgramShaderCache.h
parentd1381f5021815c36d2fdd98087b6522c995428cc (diff)
OGL: Reload shader cache when relevant video config changes
Diffstat (limited to 'Source/Core/VideoBackends/OGL/ProgramShaderCache.h')
-rw-r--r--Source/Core/VideoBackends/OGL/ProgramShaderCache.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/OGL/ProgramShaderCache.h b/Source/Core/VideoBackends/OGL/ProgramShaderCache.h
index 7af4a2c38e..7b29c24314 100644
--- a/Source/Core/VideoBackends/OGL/ProgramShaderCache.h
+++ b/Source/Core/VideoBackends/OGL/ProgramShaderCache.h
@@ -72,6 +72,7 @@ public:
static void UploadConstants();
static void Init();
+ static void Reload();
static void Shutdown();
static void CreateHeader();
@@ -82,6 +83,10 @@ private:
void Read(const SHADERUID& key, const u8* value, u32 value_size) override;
};
+ static void LoadProgramBinaries();
+ static void SaveProgramBinaries();
+ static void DestroyShaders();
+
typedef std::map<SHADERUID, PCacheEntry> PCache;
static PCache pshaders;
static PCacheEntry* last_entry;