diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-11-06 08:32:43 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-11-23 01:28:47 +0100 |
commit | 32c1bc6a67820f9df21c8f64f4df078b015aa7da (patch) | |
tree | 141df885726a01fbd7d999d6ee314b4d11c8ce56 /src/video_core/renderer_opengl/gl_shader_disk_cache.cpp | |
parent | Merge pull request #3142 from ReinUsesLisp/depbar-log (diff) | |
download | yuzu-32c1bc6a67820f9df21c8f64f4df078b015aa7da.tar yuzu-32c1bc6a67820f9df21c8f64f4df078b015aa7da.tar.gz yuzu-32c1bc6a67820f9df21c8f64f4df078b015aa7da.tar.bz2 yuzu-32c1bc6a67820f9df21c8f64f4df078b015aa7da.tar.lz yuzu-32c1bc6a67820f9df21c8f64f4df078b015aa7da.tar.xz yuzu-32c1bc6a67820f9df21c8f64f4df078b015aa7da.tar.zst yuzu-32c1bc6a67820f9df21c8f64f4df078b015aa7da.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_disk_cache.cpp | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp b/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp index 184a565e6..3f4daf28d 100644 --- a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp +++ b/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp @@ -28,34 +28,35 @@ using VideoCommon::Shader::KeyMap; namespace { +using ShaderCacheVersionHash = std::array<u8, 64>; + +enum class TransferableEntryKind : u32 { + Raw, + Usage, +}; + struct ConstBufferKey { - u32 cbuf; - u32 offset; - u32 value; + u32 cbuf{}; + u32 offset{}; + u32 value{}; }; struct BoundSamplerKey { - u32 offset; - Tegra::Engines::SamplerDescriptor sampler; + u32 offset{}; + Tegra::Engines::SamplerDescriptor sampler{}; }; struct BindlessSamplerKey { - u32 cbuf; - u32 offset; - Tegra::Engines::SamplerDescriptor sampler; -}; - -using ShaderCacheVersionHash = std::array<u8, 64>; - -enum class TransferableEntryKind : u32 { - Raw, - Usage, + u32 cbuf{}; + u32 offset{}; + Tegra::Engines::SamplerDescriptor sampler{}; }; -constexpr u32 NativeVersion = 5; +constexpr u32 NativeVersion = 6; // Making sure sizes doesn't change by accident static_assert(sizeof(BaseBindings) == 16); +static_assert(sizeof(ProgramVariant) == 20); ShaderCacheVersionHash GetShaderCacheVersionHash() { ShaderCacheVersionHash hash{}; |