diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-04-01 01:29:19 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-04-01 02:32:07 +0200 |
commit | 397f53dea1212ac888eeee0a644d036ce1fc3782 (patch) | |
tree | b910737757ab96d36268b8fd446ee2ff6c48b27e /src/video_core/renderer_vulkan/wrapper.h | |
parent | renderer_vulkan/wrapper: Add buffer and image handles (diff) | |
download | yuzu-397f53dea1212ac888eeee0a644d036ce1fc3782.tar yuzu-397f53dea1212ac888eeee0a644d036ce1fc3782.tar.gz yuzu-397f53dea1212ac888eeee0a644d036ce1fc3782.tar.bz2 yuzu-397f53dea1212ac888eeee0a644d036ce1fc3782.tar.lz yuzu-397f53dea1212ac888eeee0a644d036ce1fc3782.tar.xz yuzu-397f53dea1212ac888eeee0a644d036ce1fc3782.tar.zst yuzu-397f53dea1212ac888eeee0a644d036ce1fc3782.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/wrapper.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/wrapper.h b/src/video_core/renderer_vulkan/wrapper.h index c6d7cbb3f..d1a355144 100644 --- a/src/video_core/renderer_vulkan/wrapper.h +++ b/src/video_core/renderer_vulkan/wrapper.h @@ -600,4 +600,19 @@ public: void BindMemory(VkDeviceMemory memory, VkDeviceSize offset) const; }; +class DescriptorPool : public Handle<VkDescriptorPool, VkDevice, DeviceDispatch> { + using Handle<VkDescriptorPool, VkDevice, DeviceDispatch>::Handle; + +public: + DescriptorSets Allocate(const VkDescriptorSetAllocateInfo& ai) const; +}; + +class CommandPool : public Handle<VkCommandPool, VkDevice, DeviceDispatch> { + using Handle<VkCommandPool, VkDevice, DeviceDispatch>::Handle; + +public: + CommandBuffers Allocate(std::size_t num_buffers, + VkCommandBufferLevel level = VK_COMMAND_BUFFER_LEVEL_PRIMARY) const; +}; + } // namespace Vulkan::vk |