diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2024-02-03 22:51:04 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2024-02-04 20:01:47 +0100 |
commit | 4841dc0b745389fb03edbf900f25511bee4b3d88 (patch) | |
tree | 40149c44691369597dec8f126bab6bc1b808e93f /src/common/slot_vector.h | |
parent | Merge pull request #12901 from Kelebek1/timezone_firmware_fix (diff) | |
download | yuzu-4841dc0b745389fb03edbf900f25511bee4b3d88.tar yuzu-4841dc0b745389fb03edbf900f25511bee4b3d88.tar.gz yuzu-4841dc0b745389fb03edbf900f25511bee4b3d88.tar.bz2 yuzu-4841dc0b745389fb03edbf900f25511bee4b3d88.tar.lz yuzu-4841dc0b745389fb03edbf900f25511bee4b3d88.tar.xz yuzu-4841dc0b745389fb03edbf900f25511bee4b3d88.tar.zst yuzu-4841dc0b745389fb03edbf900f25511bee4b3d88.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/slot_vector.h (renamed from src/video_core/texture_cache/slot_vector.h) | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/texture_cache/slot_vector.h b/src/common/slot_vector.h index 3ffa2a661..34ff7de94 100644 --- a/src/video_core/texture_cache/slot_vector.h +++ b/src/common/slot_vector.h @@ -14,7 +14,7 @@ #include "common/common_types.h" #include "common/polyfill_ranges.h" -namespace VideoCommon { +namespace Common { struct SlotId { static constexpr u32 INVALID_INDEX = std::numeric_limits<u32>::max(); @@ -217,11 +217,11 @@ private: std::vector<u32> free_list; }; -} // namespace VideoCommon +} // namespace Common template <> -struct std::hash<VideoCommon::SlotId> { - size_t operator()(const VideoCommon::SlotId& id) const noexcept { +struct std::hash<Common::SlotId> { + size_t operator()(const Common::SlotId& id) const noexcept { return std::hash<u32>{}(id.index); } }; |