4#include "graphics/GPUObjects.hpp"
44 VkDescriptorPool
handle = VK_NULL_HANDLE;
Manage descriptor set allocations by creating and reusing internal descriptor pools.
Definition: DescriptorAllocator.hpp:14
DescriptorSet allocateSet(VkDescriptorSetLayout &setLayout)
Definition: DescriptorAllocator.cpp:16
std::deque< DescriptorPool > _pools
Available pools.
Definition: DescriptorAllocator.hpp:58
void clean()
Definition: DescriptorAllocator.cpp:91
uint _maxPoolCount
Maximum number of pools to create.
Definition: DescriptorAllocator.hpp:61
GPUContext * _context
The GPU context.
Definition: DescriptorAllocator.hpp:57
void init(GPUContext *context, uint poolCount)
Definition: DescriptorAllocator.cpp:6
DescriptorPool _imguiPool
ImGui dedicated pool.
Definition: DescriptorAllocator.hpp:59
VkDescriptorPool getImGuiPool()
Definition: DescriptorAllocator.hpp:38
uint _currentPoolCount
Current number of created pools.
Definition: DescriptorAllocator.hpp:62
DescriptorPool createPool(uint count, bool combined)
Definition: DescriptorAllocator.cpp:101
void freeSet(const DescriptorSet &set)
Definition: DescriptorAllocator.cpp:71
Descriptor pool management info.
Definition: DescriptorAllocator.hpp:43
VkDescriptorPool handle
Native handle.
Definition: DescriptorAllocator.hpp:44
uint allocated
Number of currently used descriptors.
Definition: DescriptorAllocator.hpp:46
uint64_t lastFrame
Last frame used.
Definition: DescriptorAllocator.hpp:45
Descriptor set allocation.
Definition: GPUTypes.hpp:508
Global GPU context, storing all structures used for resource allocation and tracking,...
Definition: GPUInternal.hpp:72