1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-03 13:24:20 +01:00

[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

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)