From df035f7fb1861793ad0fb0b6657fda20dc0c2b2e Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Tue, 3 Jun 2025 05:31:11 -0400 Subject: [PATCH] Add missing descriptors to the pool Not really a problem, but I wanted to quell the validation layers. --- renderer/src/rendermanager.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/renderer/src/rendermanager.cpp b/renderer/src/rendermanager.cpp index 2972b35..a15dcdb 100644 --- a/renderer/src/rendermanager.cpp +++ b/renderer/src/rendermanager.cpp @@ -282,7 +282,19 @@ RenderManager::RenderManager(GameData *data) poolSize2.type = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; poolSize2.descriptorCount = 150; - const std::array poolSizes = {poolSize, poolSize2}; + VkDescriptorPoolSize poolSize3 = {}; + poolSize3.type = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; + poolSize3.descriptorCount = 150; + + VkDescriptorPoolSize poolSize4 = {}; + poolSize4.type = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER; + poolSize4.descriptorCount = 150; + + VkDescriptorPoolSize poolSize5 = {}; + poolSize5.type = VK_DESCRIPTOR_TYPE_SAMPLER; + poolSize5.descriptorCount = 150; + + const std::array poolSizes = {poolSize, poolSize2, poolSize3, poolSize4, poolSize5}; VkDescriptorPoolCreateInfo poolCreateInfo = {}; poolCreateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO;