Add options to control how reflection information is built

This commit is contained in:
baldurk
2019-01-29 15:45:56 +00:00
parent 1dc5dcf0a5
commit 6d47785825
4 changed files with 17 additions and 5 deletions

View File

@@ -152,6 +152,7 @@ void ProcessConfigFile()
}
}
int ReflectOptions = EShReflectionDefault;
int Options = 0;
const char* ExecutableName = nullptr;
const char* binaryFileName = nullptr;
@@ -1051,7 +1052,7 @@ void CompileAndLinkShaderUnits(std::vector<ShaderCompUnit> compUnits)
// Reflect
if (Options & EOptionDumpReflection) {
program.buildReflection();
program.buildReflection(ReflectOptions);
program.dumpReflection();
}