15 const VkDescriptorPoolCreateInfo createInfo{
16 VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO,
25 VkDescriptorPool vkDescriptorPool{VK_NULL_HANDLE};
26 VkResult result = vkCreateDescriptorPool(static_cast<VkDevice>(
_device), &createInfo,
nullptr, &vkDescriptorPool);
29 *returnResult = result;
32 if (result != VK_SUCCESS) {
42 std::unique_ptr<API::DescriptorPool>
descriptorPool = std::make_unique<API::DescriptorPool>();
43 return build(*descriptorPool, returnResult) ? std::move(descriptorPool) :
nullptr;
bool build(API::DescriptorPool &instance, VkResult *returnResult=nullptr)
const API::Device & _device
VkDescriptorPoolCreateFlags _flags
API::DescriptorPool descriptorPool
DescriptorPool(const API::Device &device)
std::vector< VkDescriptorPoolSize > _poolSizes