diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-09-23 20:02:02 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-10-25 15:01:29 +0200 |
commit | 1a58f45d76fe7756dd365e099d1536da769c1eab (patch) | |
tree | 668a61e870c57249edf94ba2e2002d3ace18b118 /src/common | |
parent | Shader_IR: Implement BRX tracking. (diff) | |
download | yuzu-1a58f45d76fe7756dd365e099d1536da769c1eab.tar yuzu-1a58f45d76fe7756dd365e099d1536da769c1eab.tar.gz yuzu-1a58f45d76fe7756dd365e099d1536da769c1eab.tar.bz2 yuzu-1a58f45d76fe7756dd365e099d1536da769c1eab.tar.lz yuzu-1a58f45d76fe7756dd365e099d1536da769c1eab.tar.xz yuzu-1a58f45d76fe7756dd365e099d1536da769c1eab.tar.zst yuzu-1a58f45d76fe7756dd365e099d1536da769c1eab.zip |
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/CMakeLists.txt | 6 | ||||
-rw-r--r-- | src/common/hash.h | 11 |
2 files changed, 15 insertions, 2 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 5b51fcafa..9c6f1c07c 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -74,10 +74,12 @@ add_custom_command(OUTPUT scm_rev.cpp "${VIDEO_CORE}/shader/decode/xmad.cpp" "${VIDEO_CORE}/shader/ast.cpp" "${VIDEO_CORE}/shader/ast.h" - "${VIDEO_CORE}/shader/control_flow.cpp" - "${VIDEO_CORE}/shader/control_flow.h" "${VIDEO_CORE}/shader/compiler_settings.cpp" "${VIDEO_CORE}/shader/compiler_settings.h" + "${VIDEO_CORE}/shader/const_buffer_locker.cpp" + "${VIDEO_CORE}/shader/const_buffer_locker.h" + "${VIDEO_CORE}/shader/control_flow.cpp" + "${VIDEO_CORE}/shader/control_flow.h" "${VIDEO_CORE}/shader/decode.cpp" "${VIDEO_CORE}/shader/expr.cpp" "${VIDEO_CORE}/shader/expr.h" diff --git a/src/common/hash.h b/src/common/hash.h index 40194d1ee..c939709bc 100644 --- a/src/common/hash.h +++ b/src/common/hash.h @@ -6,6 +6,8 @@ #include <cstddef> #include <cstring> +#include <utility> +#include <boost/functional/hash.hpp> #include "common/cityhash.h" #include "common/common_types.h" @@ -68,4 +70,13 @@ struct HashableStruct { } }; +struct PairHash { + template <class T1, class T2> + std::size_t operator()(const std::pair<T1, T2>& pair) const { + std::size_t seed = std::hash<T1>()(pair.first); + boost::hash_combine(seed, std::hash<T2>()(pair.second)); + return seed; + } +}; + } // namespace Common |