summaryrefslogtreecommitdiffstats
path: root/src/video_core/vulkan_common/vulkan_memory_allocator.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-01-06 05:18:37 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2021-01-15 20:19:40 +0100
commit301e2b5b7a130730f42de2bb6615c0cacd78c7de (patch)
tree1d1ac74ac0f0f9be667c961f1e7a225454b384ec /src/video_core/vulkan_common/vulkan_memory_allocator.h
parentvk_texture_cache: Use Download memory types for texture flushes (diff)
downloadyuzu-301e2b5b7a130730f42de2bb6615c0cacd78c7de.tar
yuzu-301e2b5b7a130730f42de2bb6615c0cacd78c7de.tar.gz
yuzu-301e2b5b7a130730f42de2bb6615c0cacd78c7de.tar.bz2
yuzu-301e2b5b7a130730f42de2bb6615c0cacd78c7de.tar.lz
yuzu-301e2b5b7a130730f42de2bb6615c0cacd78c7de.tar.xz
yuzu-301e2b5b7a130730f42de2bb6615c0cacd78c7de.tar.zst
yuzu-301e2b5b7a130730f42de2bb6615c0cacd78c7de.zip
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_memory_allocator.h')
-rw-r--r--src/video_core/vulkan_common/vulkan_memory_allocator.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/video_core/vulkan_common/vulkan_memory_allocator.h b/src/video_core/vulkan_common/vulkan_memory_allocator.h
index d4e34c843..53b3b275a 100644
--- a/src/video_core/vulkan_common/vulkan_memory_allocator.h
+++ b/src/video_core/vulkan_common/vulkan_memory_allocator.h
@@ -29,8 +29,8 @@ enum class MemoryUsage {
class MemoryCommit {
public:
explicit MemoryCommit() noexcept = default;
- explicit MemoryCommit(const Device& device_, MemoryAllocation* allocation_,
- VkDeviceMemory memory_, u64 begin, u64 end) noexcept;
+ explicit MemoryCommit(MemoryAllocation* allocation_, VkDeviceMemory memory_, u64 begin_,
+ u64 end_) noexcept;
~MemoryCommit();
MemoryCommit& operator=(MemoryCommit&&) noexcept;
@@ -50,16 +50,16 @@ public:
/// Returns the start position of the commit relative to the allocation.
VkDeviceSize Offset() const {
- return static_cast<VkDeviceSize>(interval.first);
+ return static_cast<VkDeviceSize>(begin);
}
private:
void Release();
- const Device* device{}; ///< Vulkan device.
MemoryAllocation* allocation{}; ///< Pointer to the large memory allocation.
VkDeviceMemory memory{}; ///< Vulkan device memory handler.
- std::pair<u64, u64> interval{}; ///< Interval where the commit exists.
+ u64 begin{}; ///< Beginning offset in bytes to where the commit exists.
+ u64 end{}; ///< Offset in bytes where the commit ends.
std::span<u8> span; ///< Host visible memory span. Empty if not queried before.
};