diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_disk_cache.h | 4 |
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 | ||
| 71 | template <> | 71 | template <> |
| 72 | struct hash<OpenGL::BaseBindings> { | 72 | struct 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 | ||
| 78 | template <> | 78 | template <> |
| 79 | struct hash<OpenGL::ShaderDiskCacheUsage> { | 79 | struct 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 | } |