Document how to add a new feature enabled by an extension in Versions.cpp. Also reorganized slightly to localize related functions.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23376 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
a5830dfc0e
commit
61c2d1410a
12 changed files with 336 additions and 197 deletions
|
|
@ -40,19 +40,29 @@
|
|||
// Help manage multiple profiles, versions, extensions etc.
|
||||
//
|
||||
|
||||
//
|
||||
// The behaviors from "#extension extension_name : behavior"
|
||||
//
|
||||
typedef enum {
|
||||
ENoProfile, // only for desktop, before profiles showed up
|
||||
ECoreProfile,
|
||||
ECompatibilityProfile,
|
||||
EEsProfile,
|
||||
EProfileCount,
|
||||
EBhRequire,
|
||||
EBhEnable,
|
||||
EBhWarn,
|
||||
EBhDisable
|
||||
} TExtensionBehavior;
|
||||
|
||||
//
|
||||
// Profiles are set up for masking operations, so queries can be done on multiple
|
||||
// profiles at the same time.
|
||||
//
|
||||
// Don't maintain an ordinal set of enums (0,1,2,3...) to avoid all possible
|
||||
// defects from mixing the two different forms.
|
||||
//
|
||||
typedef enum {
|
||||
EBadProfile = 0,
|
||||
ENoProfile = (1 << 0), // only for desktop, before profiles showed up
|
||||
ECoreProfile = (1 << 1),
|
||||
ECompatibilityProfile = (1 << 2),
|
||||
EEsProfile = (1 << 3)
|
||||
} EProfile;
|
||||
|
||||
typedef enum {
|
||||
ENoProfileMask = (1 << ENoProfile),
|
||||
ECoreProfileMask = (1 << ECoreProfile),
|
||||
ECompatibilityProfileMask = (1 << ECompatibilityProfile),
|
||||
EEsProfileMask = (1 << EEsProfile)
|
||||
} EProfileMask;
|
||||
|
||||
#endif // _VERSIONS_INCLUDED_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue