47 DescriptorPool(
Device &device, uint32_t maxSets, VkDescriptorPoolCreateFlags poolFlags,
const std::vector<VkDescriptorPoolSize> &poolSizes);
55 bool allocateDescriptor(VkDescriptorSetLayout descriptorSetLayout, VkDescriptorSet &descriptor)
const;
This file contains the Device class.
std::vector< VkDescriptorPoolSize > m_poolSizes
std::unique_ptr< DescriptorPool > build() const
Builder & setPoolFlags(const VkDescriptorPoolCreateFlags flags)
Builder & setMaxSets(const uint32_t count)
Builder & addPoolSize(const VkDescriptorType descriptorType, const uint32_t count)
VkDescriptorPoolCreateFlags m_poolFlags
Class for descriptor pool.
DescriptorPool(DescriptorPool &&)=delete
VkDescriptorPool m_descriptorPool
VkDescriptorPool getDescriptorPool() const
DescriptorPool(Device &device, uint32_t maxSets, VkDescriptorPoolCreateFlags poolFlags, const std::vector< VkDescriptorPoolSize > &poolSizes)
bool allocateDescriptor(VkDescriptorSetLayout descriptorSetLayout, VkDescriptorSet &descriptor) const
DescriptorPool & operator=(DescriptorPool &&)=delete
DescriptorPool(const DescriptorPool &)=delete
DescriptorPool & operator=(const DescriptorPool &)=delete
void freeDescriptors(const std::vector< VkDescriptorSet > &descriptors) const
Class for descriptor writer.
static constexpr uint32_t DEFAULT_MAX_SETS