From d6cf88c14f5f30b66f683cab120c7c6300f2354f Mon Sep 17 00:00:00 2001 From: Stenzek Date: Tue, 5 Sep 2023 20:17:32 +1000 Subject: [PATCH] VulkanDevice: Fix persistent descriptor allocation error --- src/util/vulkan_device.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/util/vulkan_device.cpp b/src/util/vulkan_device.cpp index 73be2ecc4..eb80f0c20 100644 --- a/src/util/vulkan_device.cpp +++ b/src/util/vulkan_device.cpp @@ -744,9 +744,10 @@ bool VulkanDevice::CreatePersistentDescriptorPool() {VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, 16}, }; - const VkDescriptorPoolCreateInfo pool_create_info = {VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO, nullptr, - VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 16, - static_cast(std::size(pool_sizes)), pool_sizes}; + const VkDescriptorPoolCreateInfo pool_create_info = { + VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO, nullptr, + VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, MAX_SAMPLER_DESCRIPTORS, + static_cast(std::size(pool_sizes)), pool_sizes}; VkResult res = vkCreateDescriptorPool(m_device, &pool_create_info, nullptr, &m_global_descriptor_pool); if (res != VK_SUCCESS)