diff options
| author | 2024-02-03 22:51:04 +0100 | |
|---|---|---|
| committer | 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.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 | ||
| 17 | namespace VideoCommon { | 17 | namespace Common { |
| 18 | 18 | ||
| 19 | struct SlotId { | 19 | struct 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 | ||
| 222 | template <> | 222 | template <> |
| 223 | struct std::hash<VideoCommon::SlotId> { | 223 | struct 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 | }; |