1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-06-06 13:17:46 +00:00

Add missing descriptors to the pool

Not really a problem, but I wanted to quell the validation layers.
This commit is contained in:
Joshua Goins 2025-06-03 05:31:11 -04:00
parent e703faab55
commit df035f7fb1

View file

@ -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;