using namespace Msp;
GlslCompiler::GlslCompiler(int argc, char **argv):
- features(GL::SL::Features::latest()),
+ features(GL::SL::Features::opengl_latest()),
compile_mode(GL::SL::Compiler::PROGRAM),
parse_only(false),
combined(false),
getopt(argc, argv);
if(target_version)
- features = GL::SL::Features::from_version(GL::Version(target_version/100, target_version%100));
+ features = GL::SL::Features::from_opengl_version(GL::Version(target_version/100, target_version%100));
if(as_module)
{
if(compile_mode==GL::SL::Compiler::SPIRV)
{
- vector<UInt32> code = compiler.get_combined_spirv();
+ vector<uint32_t> code = compiler.get_combined_spirv();
out->write(reinterpret_cast<char *>(&code.front()), code.size()*4);
}
else if(combined)