+ IO::Base *out = &IO::cout;
+ RefPtr<IO::File> out_file;
+ if(!out_filename.empty())
+ {
+ out_file = new IO::File(out_filename, IO::M_WRITE);
+ out = out_file.get();
+ }
+
+ if(compile_mode==GL::SL::Compiler::SPIRV)
+ {
+ vector<UInt32> code = compiler.get_combined_spirv();
+ out->write(reinterpret_cast<char *>(&code.front()), code.size()*4);
+ }
+ else if(combined)
+ IO::print(*out, "%s\n", compiler.get_combined_glsl());