}
}
- for(Stage &s: module->stages)
+ if(mode!=MODULE)
{
- StructuralFeatureConverter().apply(s, features);
- resolve(s, RESOLVE_VARIABLES|RESOLVE_FUNCTIONS);
+ for(Stage &s: module->stages)
+ {
+ StructuralFeatureConverter().apply(s, features);
+ resolve(s, RESOLVE_VARIABLES|RESOLVE_FUNCTIONS);
+ }
}
LocationAllocator().apply(*module, features);
for(Stage &s: module->stages)
void Compiler::finalize(Stage &stage, Mode mode)
{
- QualifierConverter().apply(stage, features);
- PrecisionConverter().apply(stage);
+ if(mode!=MODULE)
+ {
+ QualifierConverter().apply(stage, features);
+ PrecisionConverter().apply(stage);
+ }
if(mode==SPIRV)
StructOrganizer().apply(stage);