Skip to content

Commit

Permalink
layers: Use emplace_back in DescriptorSet
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-lunarg authored Jul 25, 2024
1 parent 1582614 commit 5b457f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layers/state_tracker/descriptor_sets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ vvl::DescriptorSet::DescriptorSet(const VkDescriptorSet handle, vvl::DescriptorP
auto binding = MakeBinding<BufferBinding>(free_binding++, *create_info, descriptor_count, flags);
if (IsDynamicDescriptor(type)) {
for (uint32_t di = 0; di < descriptor_count; ++di) {
dynamic_offset_idx_to_descriptor_list_.push_back({i, di});
dynamic_offset_idx_to_descriptor_list_.emplace_back(i, di);
}
}
bindings_.push_back(std::move(binding));
Expand Down

0 comments on commit 5b457f9

Please sign in to comment.