HLSL: Add EHTokStringConstant, so that string attributes may be parsed
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -223,6 +223,7 @@ enum EHlslTokenClass {
|
||||
EHTokIntConstant,
|
||||
EHTokUintConstant,
|
||||
EHTokBoolConstant,
|
||||
EHTokStringConstant,
|
||||
|
||||
// control flow
|
||||
EHTokFor,
|
||||
|
||||
Reference in New Issue
Block a user