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)