Cleanup: Vulkan: Remove unused flags

Removing unused flags when creating descriptor pools.
This commit is contained in:
Jeroen Bakker
2025-04-17 15:34:22 +02:00
parent 6e8c82ef3c
commit 54f469ffa8
2 changed files with 1 additions and 1 deletions

View File

@@ -53,7 +53,6 @@ void VKDescriptorPools::add_new_pool(const VKDevice &device)
{VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT, POOL_SIZE_INPUT_ATTACHMENT}};
VkDescriptorPoolCreateInfo pool_info = {};
pool_info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO;
pool_info.flags = VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT;
pool_info.maxSets = POOL_SIZE_DESCRIPTOR_SETS;
pool_info.poolSizeCount = pool_sizes.size();
pool_info.pPoolSizes = pool_sizes.data();

View File

@@ -149,6 +149,7 @@ void VKDiscardPool::destroy_discarded_resources(VKDevice &device, bool force)
// TODO: Introduce reuse_old as the allocations can all be reused by resetting the pool.
descriptor_pools_.remove_old(current_timeline, [&](VkDescriptorPool vk_descriptor_pool) {
vkResetDescriptorPool(device.vk_handle(), vk_descriptor_pool, 0);
vkDestroyDescriptorPool(device.vk_handle(), vk_descriptor_pool, nullptr);
});
}