mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 21:25:46 +00:00
renderer_vulkan/wrapper: Add pool handles
This commit is contained in:
parent
2ed17b8c92
commit
e84b3a9f71
2 changed files with 47 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue