mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-03 17:32:26 +00:00
- removed limitation on number of descriptor set layout bindings
https://forum.zdoom.org/viewtopic.php?t=70955
This commit is contained in:
parent
0dda8733db
commit
499df03821
1 changed files with 4 additions and 4 deletions
|
@ -144,7 +144,7 @@ public:
|
|||
|
||||
private:
|
||||
VkDescriptorSetLayoutCreateInfo layoutInfo = {};
|
||||
FixedSizeVector<VkDescriptorSetLayoutBinding, 8> bindings;
|
||||
TArray<VkDescriptorSetLayoutBinding> 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<VulkanDescriptorSetLayout> DescriptorSetLayoutBuilder::create(VulkanDevice *device)
|
||||
|
|
Loading…
Reference in a new issue