mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
OGL: Reload shader cache when relevant video config changes
This commit is contained in:
parent
d1381f5021
commit
62a901508b
4 changed files with 103 additions and 57 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue