SpiecsEngine
 
Loading...
Searching...
No Matches

◆ AddPoolSize()

VulkanDescriptorPool::Builder & Spices::VulkanDescriptorPool::Builder::AddPoolSize ( VkDescriptorType descriptorType,
uint32_t count )

Add a size of specific descriptor type.

Parameters
[in]descriptorTypeThe specific type of descriptor.
[in]countThe max nums this type will occupied.
Returns
Returns a reference of this.

Definition at line 14 of file VulkanDescriptor.cpp.

19 {
21
22 m_PoolSizes.push_back({ descriptorType, count });
24 return *this;
25 }
#define SPICES_PROFILE_ZONE
std::vector< VkDescriptorPoolSize > m_PoolSizes
The vector of specific descriptor type's max count.
uint32_t m_MaxSets
The max descriptor set nums that this pool can assign.
constexpr int count
Calculate count that meets requirement.
Definition TypeList.h:289

References m_MaxSets.