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:
parent
7bc77b597e
commit
61bd62c327
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user