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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue