compiler.compile(SL::Compiler::MODULE);
prepared_source = compiler.get_combined_glsl();
source_map = compiler.get_source_map();
+
#ifdef DEBUG
string diagnostics = compiler.get_diagnostics();
if(!diagnostics.empty())
for(CodeIterator op=code.begin()+5; op!=code.end(); )
{
unsigned word_count = *op>>16;
- if(word_count>code.end()-op)
+ if(word_count>static_cast<unsigned>(code.end()-op))
throw invalid_module("Truncated SPIR-V instruction");
switch(get_opcode(*op))