diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2021-01-04 06:22:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-04 06:22:02 +0100 |
commit | 4801f4250d7b3eab0acd22c022a547af5860a6da (patch) | |
tree | 0ca01c277a2c0a91ff0f439ab6a0d6e1bc482357 /src/video_core/renderer_vulkan/vk_query_cache.h | |
parent | Merge pull request #5285 from lioncash/error-str (diff) | |
parent | renderer_vulkan: Rename VKDevice to Device (diff) | |
download | yuzu-4801f4250d7b3eab0acd22c022a547af5860a6da.tar yuzu-4801f4250d7b3eab0acd22c022a547af5860a6da.tar.gz yuzu-4801f4250d7b3eab0acd22c022a547af5860a6da.tar.bz2 yuzu-4801f4250d7b3eab0acd22c022a547af5860a6da.tar.lz yuzu-4801f4250d7b3eab0acd22c022a547af5860a6da.tar.xz yuzu-4801f4250d7b3eab0acd22c022a547af5860a6da.tar.zst yuzu-4801f4250d7b3eab0acd22c022a547af5860a6da.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_query_cache.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/video_core/renderer_vulkan/vk_query_cache.h b/src/video_core/renderer_vulkan/vk_query_cache.h index b4fb6b3b0..7190946b9 100644 --- a/src/video_core/renderer_vulkan/vk_query_cache.h +++ b/src/video_core/renderer_vulkan/vk_query_cache.h @@ -21,8 +21,8 @@ class RasterizerInterface; namespace Vulkan { class CachedQuery; +class Device; class HostCounter; -class VKDevice; class VKQueryCache; class VKScheduler; @@ -30,7 +30,7 @@ using CounterStream = VideoCommon::CounterStreamBase<VKQueryCache, HostCounter>; class QueryPool final : public ResourcePool { public: - explicit QueryPool(const VKDevice& device, VKScheduler& scheduler, VideoCore::QueryType type); + explicit QueryPool(const Device& device, VKScheduler& scheduler, VideoCore::QueryType type); ~QueryPool() override; std::pair<VkQueryPool, u32> Commit(); @@ -43,7 +43,7 @@ protected: private: static constexpr std::size_t GROW_STEP = 512; - const VKDevice& device; + const Device& device; const VideoCore::QueryType type; std::vector<vk::QueryPool> pools; @@ -55,23 +55,23 @@ class VKQueryCache final public: explicit VKQueryCache(VideoCore::RasterizerInterface& rasterizer_, Tegra::Engines::Maxwell3D& maxwell3d_, Tegra::MemoryManager& gpu_memory_, - const VKDevice& device_, VKScheduler& scheduler_); + const Device& device_, VKScheduler& scheduler_); ~VKQueryCache(); std::pair<VkQueryPool, u32> AllocateQuery(VideoCore::QueryType type); void Reserve(VideoCore::QueryType type, std::pair<VkQueryPool, u32> query); - const VKDevice& Device() const noexcept { + const Device& GetDevice() const noexcept { return device; } - VKScheduler& Scheduler() const noexcept { + VKScheduler& GetScheduler() const noexcept { return scheduler; } private: - const VKDevice& device; + const Device& device; VKScheduler& scheduler; std::array<QueryPool, VideoCore::NumQueryTypes> query_pools; }; |