Skip to content
Snippets Groups Projects
Commit b9e760f8 authored by Simeon Hermann's avatar Simeon Hermann
Browse files

[#36] fix resizing condition of descriptor set vector

parent 8029ec84
No related branches found
No related tags found
1 merge request!49Resolve "Shader Program Reflection"
Pipeline #25574 passed
...@@ -183,7 +183,7 @@ namespace vkcv { ...@@ -183,7 +183,7 @@ namespace vkcv {
maxSetID = comp.get_decoration(u.id, spv::DecorationDescriptorSet); maxSetID = comp.get_decoration(u.id, spv::DecorationDescriptorSet);
} }
if (maxSetID != -1) { if (maxSetID != -1) {
if(m_DescriptorSets.size() < maxSetID) m_DescriptorSets.resize(maxSetID + 1); if((int32_t)m_DescriptorSets.size() <= maxSetID) m_DescriptorSets.resize(maxSetID + 1);
for (const auto &binding : bindings) { for (const auto &binding : bindings) {
m_DescriptorSets[binding.first].push_back(binding.second); m_DescriptorSets[binding.first].push_back(binding.second);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment