- allocate more descriptors in the pool

This commit is contained in:
Magnus Norddahl 2019-03-02 22:41:36 +01:00
parent 763e33badb
commit 656a3b8fba

View file

@ -141,8 +141,8 @@ void VkRenderPassManager::CreateDescriptorPool()
DescriptorPoolBuilder builder; DescriptorPoolBuilder builder;
builder.addPoolSize(VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC, 4); builder.addPoolSize(VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC, 4);
builder.addPoolSize(VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC, 1); builder.addPoolSize(VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC, 1);
builder.addPoolSize(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 512 * 6); builder.addPoolSize(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 5000 * 6);
builder.setMaxSets(512); builder.setMaxSets(5000);
DescriptorPool = builder.create(GetVulkanFrameBuffer()->device); DescriptorPool = builder.create(GetVulkanFrameBuffer()->device);
} }