summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/vk_memory_manager.cpp
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2021-01-04 06:22:02 +0100
committerGitHub <noreply@github.com>2021-01-04 06:22:02 +0100
commit4801f4250d7b3eab0acd22c022a547af5860a6da (patch)
tree0ca01c277a2c0a91ff0f439ab6a0d6e1bc482357 /src/video_core/renderer_vulkan/vk_memory_manager.cpp
parentMerge pull request #5285 from lioncash/error-str (diff)
parentrenderer_vulkan: Rename VKDevice to Device (diff)
downloadyuzu-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 'src/video_core/renderer_vulkan/vk_memory_manager.cpp')
-rw-r--r--src/video_core/renderer_vulkan/vk_memory_manager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/renderer_vulkan/vk_memory_manager.cpp b/src/video_core/renderer_vulkan/vk_memory_manager.cpp
index 35f859f77..875bc65db 100644
--- a/src/video_core/renderer_vulkan/vk_memory_manager.cpp
+++ b/src/video_core/renderer_vulkan/vk_memory_manager.cpp
@@ -29,7 +29,7 @@ u64 GetAllocationChunkSize(u64 required_size) {
class VKMemoryAllocation final {
public:
- explicit VKMemoryAllocation(const VKDevice& device_, vk::DeviceMemory memory_,
+ explicit VKMemoryAllocation(const Device& device_, vk::DeviceMemory memory_,
VkMemoryPropertyFlags properties_, u64 allocation_size_, u32 type_)
: device{device_}, memory{std::move(memory_)}, properties{properties_},
allocation_size{allocation_size_}, shifted_type{ShiftType(type_)} {}
@@ -104,7 +104,7 @@ private:
return std::nullopt;
}
- const VKDevice& device; ///< Vulkan device.
+ const Device& device; ///< Vulkan device.
const vk::DeviceMemory memory; ///< Vulkan memory allocation handler.
const VkMemoryPropertyFlags properties; ///< Vulkan properties.
const u64 allocation_size; ///< Size of this allocation.
@@ -117,7 +117,7 @@ private:
std::vector<const VKMemoryCommitImpl*> commits;
};
-VKMemoryManager::VKMemoryManager(const VKDevice& device_)
+VKMemoryManager::VKMemoryManager(const Device& device_)
: device{device_}, properties{device_.GetPhysical().GetMemoryProperties()} {}
VKMemoryManager::~VKMemoryManager() = default;
@@ -207,7 +207,7 @@ VKMemoryCommit VKMemoryManager::TryAllocCommit(const VkMemoryRequirements& requi
return {};
}
-VKMemoryCommitImpl::VKMemoryCommitImpl(const VKDevice& device_, VKMemoryAllocation* allocation_,
+VKMemoryCommitImpl::VKMemoryCommitImpl(const Device& device_, VKMemoryAllocation* allocation_,
const vk::DeviceMemory& memory_, u64 begin_, u64 end_)
: device{device_}, memory{memory_}, interval{begin_, end_}, allocation{allocation_} {}