VulkanDevice: Fix persistent descriptor allocation error

This commit is contained in:
Stenzek 2023-09-05 20:17:32 +10:00
parent 6a53929e31
commit d6cf88c14f

View file

@ -744,8 +744,9 @@ bool VulkanDevice::CreatePersistentDescriptorPool()
{VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, 16}, {VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, 16},
}; };
const VkDescriptorPoolCreateInfo pool_create_info = {VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO, nullptr, const VkDescriptorPoolCreateInfo pool_create_info = {
VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 16, VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO, nullptr,
VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, MAX_SAMPLER_DESCRIPTORS,
static_cast<u32>(std::size(pool_sizes)), pool_sizes}; static_cast<u32>(std::size(pool_sizes)), pool_sizes};
VkResult res = vkCreateDescriptorPool(m_device, &pool_create_info, nullptr, &m_global_descriptor_pool); VkResult res = vkCreateDescriptorPool(m_device, &pool_create_info, nullptr, &m_global_descriptor_pool);