HLSL: allow uint literals, and add test for numeric suffixes

This commit is contained in:
steve-lunarg 2016-07-28 14:49:48 -06:00
parent 414f735443
commit 2de329112b
5 changed files with 205 additions and 1 deletions

View file

@ -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;