mirror of
https://github.com/yuzu-emu/sirit.git
synced 2024-11-22 05:45:40 +01:00
Change count
to string_words
Co-authored-by: Rodrigo Locatti <reinuseslisp@airmail.cc>
This commit is contained in:
parent
63c5b548c5
commit
c095705f59
@ -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 New Issue
Block a user