summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_disk_cache.h4
1 files changed, 2 insertions, 2 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 34d4bd637..7a7183f21 100644
--- a/src/video_core/renderer_opengl/gl_shader_disk_cache.h
+++ b/src/video_core/renderer_opengl/gl_shader_disk_cache.h
@@ -70,14 +70,14 @@ namespace std {
70 70
71template <> 71template <>
72struct hash<OpenGL::BaseBindings> { 72struct hash<OpenGL::BaseBindings> {
73 std::size_t operator()(const OpenGL::BaseBindings& bindings) const { 73 std::size_t operator()(const OpenGL::BaseBindings& bindings) const noexcept {
74 return bindings.cbuf | bindings.gmem << 8 | bindings.sampler << 16; 74 return bindings.cbuf | bindings.gmem << 8 | bindings.sampler << 16;
75 } 75 }
76}; 76};
77 77
78template <> 78template <>
79struct hash<OpenGL::ShaderDiskCacheUsage> { 79struct hash<OpenGL::ShaderDiskCacheUsage> {
80 std::size_t operator()(const OpenGL::ShaderDiskCacheUsage& usage) const { 80 std::size_t operator()(const OpenGL::ShaderDiskCacheUsage& usage) const noexcept {
81 return static_cast<std::size_t>(usage.unique_identifier) ^ 81 return static_cast<std::size_t>(usage.unique_identifier) ^
82 std::hash<OpenGL::BaseBindings>()(usage.bindings) ^ usage.primitive << 16; 82 std::hash<OpenGL::BaseBindings>()(usage.bindings) ^ usage.primitive << 16;
83 } 83 }