HLSL: allow uint literals, and add test for numeric suffixes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user