return builtins_module.get();
}
-Stage *get_builtins(Stage::Type type)
+const Stage *get_builtins(Stage::Type type)
{
Module *module = get_builtins_module();
if(!module)
stage.required_features.glsl_version = module->shared.required_features.glsl_version;
inject_block(stage.content, module->shared.content);
- if(Stage *builtins = get_builtins(stage.type))
+ if(const Stage *builtins = get_builtins(stage.type))
inject_block(stage.content, builtins->content);
- if(Stage *builtins = get_builtins(Stage::SHARED))
+ if(const Stage *builtins = get_builtins(Stage::SHARED))
inject_block(stage.content, builtins->content);
// Initial resolving pass