File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
backends/vulkan/runtime/vk_api Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,14 @@ void SpecVarList::append(const SpecVarList& other) {
174174 vars.insert (vars.end (), other.vars .begin (), other.vars .end ());
175175}
176176
177+ void SpecVarList::reserve (const size_t size) {
178+ vars.reserve (size);
179+ }
180+
181+ void SpecVarList::append (const SpecVar& other) {
182+ vars.push_back (other);
183+ }
184+
177185std::vector<VkSpecializationMapEntry> SpecVarList::generate_map_entries ()
178186 const {
179187 std::vector<VkSpecializationMapEntry> map_entries;
Original file line number Diff line number Diff line change @@ -82,6 +82,10 @@ class SpecVarList final {
8282
8383 void append (const SpecVarList& other);
8484
85+ void reserve (const size_t size);
86+
87+ void append (const SpecVar& other);
88+
8589 std::vector<VkSpecializationMapEntry> generate_map_entries () const ;
8690
8791 friend bool operator ==(const SpecVarList& lhs, const SpecVarList& rhs);
You can’t perform that action at this time.
0 commit comments