diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-14 03:22:15 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-02-07 02:20:57 +0100 |
commit | 98be5a49289ca17b9470669ae94162dfa28eb2fb (patch) | |
tree | f69c8e66525b4c9c5fa4ef28a6a7565e0830deb4 /src/video_core/renderer_opengl/gl_shader_disk_cache.h | |
parent | gl_shader_disk_cache: Add file and move BaseBindings declaration (diff) | |
download | yuzu-98be5a49289ca17b9470669ae94162dfa28eb2fb.tar yuzu-98be5a49289ca17b9470669ae94162dfa28eb2fb.tar.gz yuzu-98be5a49289ca17b9470669ae94162dfa28eb2fb.tar.bz2 yuzu-98be5a49289ca17b9470669ae94162dfa28eb2fb.tar.lz yuzu-98be5a49289ca17b9470669ae94162dfa28eb2fb.tar.xz yuzu-98be5a49289ca17b9470669ae94162dfa28eb2fb.tar.zst yuzu-98be5a49289ca17b9470669ae94162dfa28eb2fb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_disk_cache.h | 24 |
1 files changed, 24 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 cb40e9926..690c92cae 100644 --- a/src/video_core/renderer_opengl/gl_shader_disk_cache.h +++ b/src/video_core/renderer_opengl/gl_shader_disk_cache.h @@ -4,9 +4,11 @@ #pragma once +#include <string> #include <tuple> #include "common/common_types.h" +#include "common/file_util.h" #include "video_core/engines/maxwell_3d.h" namespace OpenGL { @@ -38,4 +40,26 @@ public: } }; +class ShaderDiskCacheOpenGL { +public: +private: + /// Create shader disk cache directories. Returns true on success. + bool EnsureDirectories() const; + + /// Gets current game's transferable file path + std::string GetTransferablePath() const; + + /// Gets current game's precompiled file path + std::string GetPrecompiledPath() const; + + /// Get user's transferable directory path + std::string GetTransferableDir() const; + + /// Get user's precompiled directory path + std::string GetPrecompiledDir() const; + + /// Get user's shader directory path + std::string GetBaseDir() const; +}; + } // namespace OpenGL
\ No newline at end of file |