summaryrefslogtreecommitdiffstats
path: root/src/video_core/vulkan_common/vulkan_memory_allocator.h
diff options
context:
space:
mode:
authorGPUCode <geoster3d@gmail.com>2023-05-24 21:39:58 +0200
committerGPUCode <geoster3d@gmail.com>2023-06-18 11:45:18 +0200
commit48e39756f1ec6e6b0ef48f2444ce38a4e861e898 (patch)
tree223a51e03aa6da0df85d3a698630ae37315db257 /src/video_core/vulkan_common/vulkan_memory_allocator.h
parentmemory_allocator: Remove OpenGL interop (diff)
downloadyuzu-48e39756f1ec6e6b0ef48f2444ce38a4e861e898.tar
yuzu-48e39756f1ec6e6b0ef48f2444ce38a4e861e898.tar.gz
yuzu-48e39756f1ec6e6b0ef48f2444ce38a4e861e898.tar.bz2
yuzu-48e39756f1ec6e6b0ef48f2444ce38a4e861e898.tar.lz
yuzu-48e39756f1ec6e6b0ef48f2444ce38a4e861e898.tar.xz
yuzu-48e39756f1ec6e6b0ef48f2444ce38a4e861e898.tar.zst
yuzu-48e39756f1ec6e6b0ef48f2444ce38a4e861e898.zip
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_memory_allocator.h')
-rw-r--r--src/video_core/vulkan_common/vulkan_memory_allocator.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/vulkan_common/vulkan_memory_allocator.h b/src/video_core/vulkan_common/vulkan_memory_allocator.h
index 494f30f51..f9ee53cfb 100644
--- a/src/video_core/vulkan_common/vulkan_memory_allocator.h
+++ b/src/video_core/vulkan_common/vulkan_memory_allocator.h
@@ -80,6 +80,8 @@ public:
MemoryAllocator& operator=(const MemoryAllocator&) = delete;
MemoryAllocator(const MemoryAllocator&) = delete;
+ vk::Image CreateImage(const VkImageCreateInfo& ci) const;
+
/**
* Commits a memory with the specified requirements.
*
@@ -93,9 +95,6 @@ public:
/// Commits memory required by the buffer and binds it.
MemoryCommit Commit(const vk::Buffer& buffer, MemoryUsage usage);
- /// Commits memory required by the image and binds it.
- MemoryCommit Commit(const vk::Image& image, MemoryUsage usage);
-
private:
/// Tries to allocate a chunk of memory.
bool TryAllocMemory(VkMemoryPropertyFlags flags, u32 type_mask, u64 size);