summaryrefslogtreecommitdiff
path: root/src/common/slot_vector.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2024-02-03 22:51:04 +0100
committerGravatar Fernando Sahmkow2024-02-04 20:01:47 +0100
commit4841dc0b745389fb03edbf900f25511bee4b3d88 (patch)
tree40149c44691369597dec8f126bab6bc1b808e93f /src/common/slot_vector.h
parentMerge pull request #12901 from Kelebek1/timezone_firmware_fix (diff)
downloadyuzu-4841dc0b745389fb03edbf900f25511bee4b3d88.tar.gz
yuzu-4841dc0b745389fb03edbf900f25511bee4b3d88.tar.xz
yuzu-4841dc0b745389fb03edbf900f25511bee4b3d88.zip
VideoCore: Move Slot Vector to Common
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 @@
14#include "common/common_types.h" 14#include "common/common_types.h"
15#include "common/polyfill_ranges.h" 15#include "common/polyfill_ranges.h"
16 16
17namespace VideoCommon { 17namespace Common {
18 18
19struct SlotId { 19struct SlotId {
20 static constexpr u32 INVALID_INDEX = std::numeric_limits<u32>::max(); 20 static constexpr u32 INVALID_INDEX = std::numeric_limits<u32>::max();
@@ -217,11 +217,11 @@ private:
217 std::vector<u32> free_list; 217 std::vector<u32> free_list;
218}; 218};
219 219
220} // namespace VideoCommon 220} // namespace Common
221 221
222template <> 222template <>
223struct std::hash<VideoCommon::SlotId> { 223struct std::hash<Common::SlotId> {
224 size_t operator()(const VideoCommon::SlotId& id) const noexcept { 224 size_t operator()(const Common::SlotId& id) const noexcept {
225 return std::hash<u32>{}(id.index); 225 return std::hash<u32>{}(id.index);
226 } 226 }
227}; 227};