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_memory_manager.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_memory_manager.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/video_core/renderer_vulkan/vk_memory_manager.h b/src/video_core/renderer_vulkan/vk_memory_manager.h index 20463ecad..2452bca4e 100644 --- a/src/video_core/renderer_vulkan/vk_memory_manager.h +++ b/src/video_core/renderer_vulkan/vk_memory_manager.h @@ -13,8 +13,8 @@ namespace Vulkan { +class Device; class MemoryMap; -class VKDevice; class VKMemoryAllocation; class VKMemoryCommitImpl; @@ -22,7 +22,7 @@ using VKMemoryCommit = std::unique_ptr<VKMemoryCommitImpl>; class VKMemoryManager final { public: - explicit VKMemoryManager(const VKDevice& device_); + explicit VKMemoryManager(const Device& device_); VKMemoryManager(const VKMemoryManager&) = delete; ~VKMemoryManager(); @@ -49,7 +49,7 @@ private: VKMemoryCommit TryAllocCommit(const VkMemoryRequirements& requirements, VkMemoryPropertyFlags wanted_properties); - const VKDevice& device; ///< Device handler. + const Device& device; ///< Device handler. const VkPhysicalDeviceMemoryProperties properties; ///< Physical device properties. std::vector<std::unique_ptr<VKMemoryAllocation>> allocations; ///< Current allocations. }; @@ -59,7 +59,7 @@ class VKMemoryCommitImpl final { friend MemoryMap; public: - explicit VKMemoryCommitImpl(const VKDevice& device_, VKMemoryAllocation* allocation_, + explicit VKMemoryCommitImpl(const Device& device_, VKMemoryAllocation* allocation_, const vk::DeviceMemory& memory_, u64 begin_, u64 end_); ~VKMemoryCommitImpl(); @@ -85,7 +85,7 @@ private: /// Unmaps memory. void Unmap() const; - const VKDevice& device; ///< Vulkan device. + const Device& device; ///< Vulkan device. const vk::DeviceMemory& memory; ///< Vulkan device memory handler. std::pair<u64, u64> interval{}; ///< Interval where the commit exists. VKMemoryAllocation* allocation{}; ///< Pointer to the large memory allocation. |