From 499df03821d9121c56c8cb6b6050a301db380d06 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 1 Jan 2021 14:46:24 +0200 Subject: [PATCH] - removed limitation on number of descriptor set layout bindings https://forum.zdoom.org/viewtopic.php?t=70955 --- src/common/rendering/vulkan/system/vk_builders.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/rendering/vulkan/system/vk_builders.h b/src/common/rendering/vulkan/system/vk_builders.h index 7eca4c6a1..5f0e3c0fc 100644 --- a/src/common/rendering/vulkan/system/vk_builders.h +++ b/src/common/rendering/vulkan/system/vk_builders.h @@ -144,7 +144,7 @@ public: private: VkDescriptorSetLayoutCreateInfo layoutInfo = {}; - FixedSizeVector bindings; + TArray bindings; }; class DescriptorPoolBuilder @@ -636,10 +636,10 @@ inline void DescriptorSetLayoutBuilder::addBinding(int index, VkDescriptorType t binding.descriptorCount = arrayCount; binding.stageFlags = stageFlags; binding.pImmutableSamplers = nullptr; - bindings.push_back(binding); + bindings.Push(binding); - layoutInfo.bindingCount = (uint32_t)bindings.size(); - layoutInfo.pBindings = bindings.data(); + layoutInfo.bindingCount = (uint32_t)bindings.Size(); + layoutInfo.pBindings = &bindings[0]; } inline std::unique_ptr DescriptorSetLayoutBuilder::create(VulkanDevice *device)