#include "builtin.h"
#include "compiler.h"
#include "debug.h"
-#include "deviceinfo.h"
#include "error.h"
#include "finalize.h"
#include "generate.h"
namespace GL {
namespace SL {
-Compiler::Compiler():
- features(DeviceInfo::get_global().glsl_features)
-{ }
-
Compiler::Compiler(const Features &f):
features(f)
{ }
{
if(mode==PROGRAM)
{
- LegacyConverter().apply(stage, features);
+ StructuralFeatureConverter().apply(stage, features);
+ QualifierConverter().apply(stage, features);
resolve(stage, RESOLVE_VARIABLES|RESOLVE_FUNCTIONS);
PrecisionConverter().apply(stage);
}