[D3D12] unordered_map instead of multimap in TextureCache

This commit is contained in:
Triang3l
2021-05-05 21:40:00 +03:00
parent ce19d948f0
commit 8f1f849a06
3 changed files with 55 additions and 69 deletions

View File

@@ -12,6 +12,8 @@
#include <cstddef>
#include "xenia/base/xxhash.h"
namespace xe {
namespace hash {
@@ -24,6 +26,13 @@ struct IdentityHasher {
size_t operator()(const Key& key) const { return static_cast<size_t>(key); }
};
template <typename Key>
struct XXHasher {
size_t operator()(const Key& key) const {
return static_cast<size_t>(XXH3_64bits(&key, sizeof(key)));
}
};
} // namespace hash
} // namespace xe