SpiecsEngine
 
Loading...
Searching...
No Matches

◆ Build()

std::shared_ptr< VulkanDescriptorPool > Spices::VulkanDescriptorPool::Builder::Build ( VulkanState & vulkanState) const

Build a shared pointer of VulkanDescriptorPool.

Parameters
[in]vulkanStateThe core vulkan objects that in use.
Returns
Returns the shared pointer of VulkanDescriptorPool.

Instance a VulkanDescriptorPool.

Instance a VulkanDescriptorPool.

Definition at line 40 of file VulkanDescriptor.cpp.

42 {
44
48 return std::make_shared<VulkanDescriptorPool>(vulkanState, m_MaxSets, m_PoolFlags, m_PoolSizes);
49 }
#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.
VkDescriptorPoolCreateFlags m_PoolFlags
The specific VkDescriptorPool type identify.