common: Common namespace for the slot vector container

This commit is contained in:
psucien 2024-06-18 14:05:11 +02:00
parent cee55355bf
commit 8475a62a46
5 changed files with 10 additions and 10 deletions

View file

@ -100,7 +100,7 @@ private:
vk::Image image{};
};
constexpr SlotId NULL_IMAGE_ID{0};
constexpr Common::SlotId NULL_IMAGE_ID{0};
struct Image {
explicit Image(const Vulkan::Instance& instance, Vulkan::Scheduler& scheduler,

View file

@ -140,8 +140,8 @@ private:
Vulkan::Scheduler& scheduler;
Vulkan::StreamBuffer staging;
TileManager tile_manager;
SlotVector<Image> slot_images;
SlotVector<ImageView> slot_image_views;
Common::SlotVector<Image> slot_images;
Common::SlotVector<ImageView> slot_image_views;
tsl::robin_map<u64, Sampler> samplers;
tsl::robin_pg_map<u64, std::vector<ImageId>> page_table;
boost::icl::interval_map<VAddr, s32> cached_pages;

View file

@ -8,8 +8,8 @@
namespace VideoCore {
using ImageId = SlotId;
using ImageViewId = SlotId;
using ImageId = Common::SlotId;
using ImageViewId = Common::SlotId;
struct Offset2D {
s32 x;