mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2024-12-22 20:22:02 +00:00
Change count
to string_words
Co-authored-by: Rodrigo Locatti <reinuseslisp@airmail.cc>
This commit is contained in:
parent
63c5b548c5
commit
c095705f59
1 changed files with 3 additions and 3 deletions
|
@ -42,10 +42,10 @@ std::vector<u32> Module::Assemble() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const std::string_view extension_name : extensions) {
|
for (const std::string_view extension_name : extensions) {
|
||||||
size_t count = WordsInString(extension_name);
|
size_t string_words = WordsInString(extension_name);
|
||||||
words.push_back(MakeWord0(spv::Op::OpExtension, count + 1));
|
words.push_back(MakeWord0(spv::Op::OpExtension, string_words + 1));
|
||||||
size_t insert_index = words.size();
|
size_t insert_index = words.size();
|
||||||
words.resize(words.size() + count);
|
words.resize(words.size() + string_words);
|
||||||
InsertStringView(words, insert_index, extension_name);
|
InsertStringView(words, insert_index, extension_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue