diff options
Diffstat (limited to 'Source/ThirdParty/ANGLE/src/compiler/ExtensionBehavior.h')
-rw-r--r-- | Source/ThirdParty/ANGLE/src/compiler/ExtensionBehavior.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/Source/ThirdParty/ANGLE/src/compiler/ExtensionBehavior.h b/Source/ThirdParty/ANGLE/src/compiler/ExtensionBehavior.h index da96c24..e9bba4b 100644 --- a/Source/ThirdParty/ANGLE/src/compiler/ExtensionBehavior.h +++ b/Source/ThirdParty/ANGLE/src/compiler/ExtensionBehavior.h @@ -13,9 +13,26 @@ typedef enum { EBhRequire, EBhEnable, EBhWarn, - EBhDisable + EBhDisable, + EBhUndefined, } TBehavior; +inline const char* getBehaviorString(TBehavior b) +{ + switch(b) { + case EBhRequire: + return "require"; + case EBhEnable: + return "enable"; + case EBhWarn: + return "warn"; + case EBhDisable: + return "disable"; + default: + return NULL; + } +} + typedef TMap<TString, TBehavior> TExtensionBehavior; #endif // _EXTENSION_TABLE_INCLUDED_ |