HLSL: allow uint literals, and add test for numeric suffixes
This commit is contained in:
parent
414f735443
commit
2de329112b
5 changed files with 205 additions and 1 deletions
|
|
@ -1960,6 +1960,9 @@ bool HlslGrammar::acceptLiteral(TIntermTyped*& node)
|
|||
case EHTokIntConstant:
|
||||
node = intermediate.addConstantUnion(token.i, token.loc, true);
|
||||
break;
|
||||
case EHTokUintConstant:
|
||||
node = intermediate.addConstantUnion(token.u, token.loc, true);
|
||||
break;
|
||||
case EHTokFloatConstant:
|
||||
node = intermediate.addConstantUnion(token.d, EbtFloat, token.loc, true);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,6 @@ public:
|
|||
|
||||
void setLimits(const TBuiltInResource&);
|
||||
bool parseShaderStrings(TPpContext&, TInputScanner& input, bool versionWillBeError = false);
|
||||
void getPreamble(std::string&);
|
||||
|
||||
void C_DECL error(const TSourceLoc&, const char* szReason, const char* szToken,
|
||||
const char* szExtraInfoFormat, ...);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue