diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-14 03:33:31 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-02-07 02:20:57 +0100 |
commit | a1faed99501d04b233d44a7cab0368449d8a9cb5 (patch) | |
tree | 01cc9ac951d4ef4b62a7db35b2d7c84342acd3cc /src/video_core/renderer_opengl/gl_shader_disk_cache.h | |
parent | gl_shader_disk_cache: Add precompiled save (diff) | |
download | yuzu-a1faed99501d04b233d44a7cab0368449d8a9cb5.tar yuzu-a1faed99501d04b233d44a7cab0368449d8a9cb5.tar.gz yuzu-a1faed99501d04b233d44a7cab0368449d8a9cb5.tar.bz2 yuzu-a1faed99501d04b233d44a7cab0368449d8a9cb5.tar.lz yuzu-a1faed99501d04b233d44a7cab0368449d8a9cb5.tar.xz yuzu-a1faed99501d04b233d44a7cab0368449d8a9cb5.tar.zst yuzu-a1faed99501d04b233d44a7cab0368449d8a9cb5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_disk_cache.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_disk_cache.h b/src/video_core/renderer_opengl/gl_shader_disk_cache.h index fdb29caa5..e68aea694 100644 --- a/src/video_core/renderer_opengl/gl_shader_disk_cache.h +++ b/src/video_core/renderer_opengl/gl_shader_disk_cache.h @@ -144,6 +144,12 @@ public: bool LoadTransferable(std::vector<ShaderDiskCacheRaw>& raws, std::vector<ShaderDiskCacheUsage>& usages); + /// Loads current game's precompiled cache. Invalidates if emulator's version has changed. + std::vector<ShaderDiskCachePrecompiledEntry> LoadPrecompiled(); + + /// Removes the precompiled cache file. + void InvalidatePrecompiled() const; + /// Saves a raw dump to the transferable file. Checks for collisions. void SaveRaw(const ShaderDiskCacheRaw& entry); |