Cleanup: Vulkan: Remove unused flags
Removing unused flags when creating descriptor pools.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user