Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions backends/vulkan/runtime/vk_api/Pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,14 @@ void SpecVarList::append(const SpecVarList& other) {
vars.insert(vars.end(), other.vars.begin(), other.vars.end());
}

void SpecVarList::reserve(const size_t size) {
vars.reserve(size);
}

void SpecVarList::append(const SpecVar& other) {
vars.push_back(other);
}

std::vector<VkSpecializationMapEntry> SpecVarList::generate_map_entries()
const {
std::vector<VkSpecializationMapEntry> map_entries;
Expand Down
4 changes: 4 additions & 0 deletions backends/vulkan/runtime/vk_api/Pipeline.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ class SpecVarList final {

void append(const SpecVarList& other);

void reserve(const size_t size);

void append(const SpecVar& other);

std::vector<VkSpecializationMapEntry> generate_map_entries() const;

friend bool operator==(const SpecVarList& lhs, const SpecVarList& rhs);
Expand Down
Loading