VulkanRenderer: Fix descriptor pool sizes when using arrays

This commit is contained in:
Lynix 2024-01-15 14:30:56 +01:00
parent d3899d71f3
commit ea4b8eaaea
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ namespace Nz
for (const auto& bindingInfo : m_layoutInfo.bindings)
{
VkDescriptorPoolSize& poolSize = poolSizes.emplace_back();
poolSize.descriptorCount = MaxSet;
poolSize.descriptorCount = MaxSet * bindingInfo.arraySize;
poolSize.type = ToVulkan(bindingInfo.type);
}