[dxvk] Allow descriptor pool overallocation if supported

This commit is contained in:
Philip Rebohle 2024-05-22 13:17:53 +02:00 committed by Philip Rebohle
parent 7bc77b597e
commit 61bd62c327
1 changed files with 6 additions and 1 deletions

View File

@ -306,7 +306,12 @@ namespace dxvk {
info.maxSets = m_maxSets;
info.poolSizeCount = pools.size();
info.pPoolSizes = pools.data();
if (m_device->features().nvDescriptorPoolOverallocation.descriptorPoolOverallocation) {
info.flags |= VK_DESCRIPTOR_POOL_CREATE_ALLOW_OVERALLOCATION_POOLS_BIT_NV
| VK_DESCRIPTOR_POOL_CREATE_ALLOW_OVERALLOCATION_SETS_BIT_NV;
}
VkDescriptorPool pool = VK_NULL_HANDLE;
if (vk->vkCreateDescriptorPool(vk->device(), &info, nullptr, &pool) != VK_SUCCESS)