diff options
author | GPUCode <geoster3d@gmail.com> | 2023-05-24 19:32:12 +0200 |
---|---|---|
committer | GPUCode <geoster3d@gmail.com> | 2023-06-18 11:45:18 +0200 |
commit | c60eed36b7439a7921ea5e86e1300e96e30c8f8a (patch) | |
tree | 7cd7275eb350ebbbe02361c56ee7895a55c7a54b /src/video_core/vulkan_common/vulkan_memory_allocator.h | |
parent | externals: Add vma and initialize it (diff) | |
download | yuzu-c60eed36b7439a7921ea5e86e1300e96e30c8f8a.tar yuzu-c60eed36b7439a7921ea5e86e1300e96e30c8f8a.tar.gz yuzu-c60eed36b7439a7921ea5e86e1300e96e30c8f8a.tar.bz2 yuzu-c60eed36b7439a7921ea5e86e1300e96e30c8f8a.tar.lz yuzu-c60eed36b7439a7921ea5e86e1300e96e30c8f8a.tar.xz yuzu-c60eed36b7439a7921ea5e86e1300e96e30c8f8a.tar.zst yuzu-c60eed36b7439a7921ea5e86e1300e96e30c8f8a.zip |
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_memory_allocator.h')
-rw-r--r-- | src/video_core/vulkan_common/vulkan_memory_allocator.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/video_core/vulkan_common/vulkan_memory_allocator.h b/src/video_core/vulkan_common/vulkan_memory_allocator.h index a5bff03fe..494f30f51 100644 --- a/src/video_core/vulkan_common/vulkan_memory_allocator.h +++ b/src/video_core/vulkan_common/vulkan_memory_allocator.h @@ -41,9 +41,6 @@ public: /// It will map the backing allocation if it hasn't been mapped before. std::span<u8> Map(); - /// Returns an non-owning OpenGL handle, creating one if it doesn't exist. - u32 ExportOpenGLHandle() const; - /// Returns the Vulkan memory handler. VkDeviceMemory Memory() const { return memory; @@ -74,11 +71,10 @@ public: * Construct memory allocator * * @param device_ Device to allocate from - * @param export_allocations_ True when allocations have to be exported * * @throw vk::Exception on failure */ - explicit MemoryAllocator(const Device& device_, bool export_allocations_); + explicit MemoryAllocator(const Device& device_); ~MemoryAllocator(); MemoryAllocator& operator=(const MemoryAllocator&) = delete; @@ -117,9 +113,8 @@ private: /// Returns index to the fastest memory type compatible with the passed requirements. std::optional<u32> FindType(VkMemoryPropertyFlags flags, u32 type_mask) const; - const Device& device; ///< Device handle. - const VkPhysicalDeviceMemoryProperties properties; ///< Physical device properties. - const bool export_allocations; ///< True when memory allocations have to be exported. + const Device& device; ///< Device handle. + const VkPhysicalDeviceMemoryProperties properties; ///< Physical device properties. std::vector<std::unique_ptr<MemoryAllocation>> allocations; ///< Current allocations. VkDeviceSize buffer_image_granularity; // The granularity for adjacent offsets between buffers // and optimal images |