Add warning-suppression flag. Combined with relaxed errors, so an enum can be used instead of many bools.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@20818 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
4055816bc9
commit
37827023c4
7 changed files with 26 additions and 17 deletions
|
|
@ -68,7 +68,7 @@ struct TPragma {
|
|||
//
|
||||
struct TParseContext {
|
||||
TParseContext(TSymbolTable&, TIntermediate&, int version, EProfile, EShLanguage, TInfoSink&,
|
||||
bool forwardCompatible = false, bool relaxedChecking = false);
|
||||
bool forwardCompatible = false, EShMessages messages = EShMsgDefault);
|
||||
TIntermediate& intermediate; // to hold and build a parse tree
|
||||
TSymbolTable& symbolTable; // symbol table that goes with the current language, version, and profile
|
||||
TInfoSink& infoSink;
|
||||
|
|
@ -86,7 +86,7 @@ struct TParseContext {
|
|||
int version; // version, updated by #version in the shader
|
||||
EProfile profile; // the declared profile in the shader (core by default)
|
||||
bool forwardCompatible; // true if errors are to be given for use of deprecated features
|
||||
bool relaxedChecking; // suppress warnings and reduce error checking
|
||||
EShMessages messages; // errors/warnings
|
||||
bool futureCompatibility; // true if requesting errors for future compatibility (false by default)
|
||||
TMap<TString, TBehavior> extensionBehavior; // for each extension string, what it's current enablement is
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue