Add uint type (big change). For both int/uint, add the operators >>, <<, &, |, and ^. Also added unsigned literals and uint precision support. Also fixed how int/uint literal underflow/overflow is handled.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@21054 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
ae722a6230
commit
ebeeece6a7
16 changed files with 473 additions and 102 deletions
|
|
@ -160,3 +160,16 @@ void TParseContext::requireNotRemoved(int line, EProfile callingProfile, int rem
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
void TParseContext::fullIntegerCheck(int line, const char* op)
|
||||
{
|
||||
profileRequires(line, ENoProfile, 130, 0, op);
|
||||
profileRequires(line, EEsProfile, 300, 0, op);
|
||||
}
|
||||
|
||||
void TParseContext::doubleCheck(int line, const char* op)
|
||||
{
|
||||
requireProfile(line, (EProfileMask)(ECoreProfileMask | ECompatibilityProfileMask), op);
|
||||
profileRequires(line, ECoreProfile, 400, 0, op);
|
||||
profileRequires(line, ECompatibilityProfile, 400, 0, op);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue