We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ea5d37 + c5f8ea1 commit 1c7a558Copy full SHA for 1c7a558
spirv_cross_parsed_ir.hpp
@@ -111,6 +111,7 @@ class ParsedIR
111
112
struct Source
113
{
114
+ spv::SourceLanguage lang = spv::SourceLanguageUnknown;
115
uint32_t version = 0;
116
bool es = false;
117
bool known = false;
spirv_parser.cpp
@@ -213,8 +213,8 @@ void Parser::parse(const Instruction &instruction)
213
214
case OpSource:
215
216
- auto lang = static_cast<SourceLanguage>(ops[0]);
217
- switch (lang)
+ ir.source.lang = static_cast<SourceLanguage>(ops[0]);
+ switch (ir.source.lang)
218
219
case SourceLanguageESSL:
220
ir.source.es = true;
0 commit comments