summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-19 08:42:57 +0200
committerLioncash <mathew1800@gmail.com>2019-05-19 08:46:45 +0200
commit7fdc644c446b3c710d3e3160ced89dd793485eca (patch)
tree7dc890f6bb2a472cce1bd1c42f8f70143b382468 /src/video_core
parentgl_shader_disk_cache: Remove redundant code string construction in LoadDecompiledEntry() (diff)
downloadyuzu-7fdc644c446b3c710d3e3160ced89dd793485eca.tar
yuzu-7fdc644c446b3c710d3e3160ced89dd793485eca.tar.gz
yuzu-7fdc644c446b3c710d3e3160ced89dd793485eca.tar.bz2
yuzu-7fdc644c446b3c710d3e3160ced89dd793485eca.tar.lz
yuzu-7fdc644c446b3c710d3e3160ced89dd793485eca.tar.xz
yuzu-7fdc644c446b3c710d3e3160ced89dd793485eca.tar.zst
yuzu-7fdc644c446b3c710d3e3160ced89dd793485eca.zip
Diffstat (limited to 'src/video_core')
-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 {
template <>
struct hash<OpenGL::BaseBindings> {
- std::size_t operator()(const OpenGL::BaseBindings& bindings) const {
+ std::size_t operator()(const OpenGL::BaseBindings& bindings) const noexcept {
return bindings.cbuf | bindings.gmem << 8 | bindings.sampler << 16;
}
};
template <>
struct hash<OpenGL::ShaderDiskCacheUsage> {
- std::size_t operator()(const OpenGL::ShaderDiskCacheUsage& usage) const {
+ std::size_t operator()(const OpenGL::ShaderDiskCacheUsage& usage) const noexcept {
return static_cast<std::size_t>(usage.unique_identifier) ^
std::hash<OpenGL::BaseBindings>()(usage.bindings) ^ usage.primitive << 16;
}