HLSL: Add EHTokStringConstant, so that string attributes may be parsed

This commit is contained in:
steve-lunarg
2016-08-22 16:13:47 -06:00
parent b9e39120b4
commit efe9724795
6 changed files with 123 additions and 1 deletions

View File

@@ -411,6 +411,11 @@ EHlslTokenClass HlslScanContext::tokenizeClass(HlslToken& token)
return token;
}
case PpAtomConstString: {
parserToken->string = NewPoolTString(ppToken.name);
return EHTokStringConstant;
}
case EndOfInput: return EHTokNone;
default:

View File

@@ -223,6 +223,7 @@ enum EHlslTokenClass {
EHTokIntConstant,
EHTokUintConstant,
EHTokBoolConstant,
EHTokStringConstant,
// control flow
EHTokFor,