HLSL: Fix #771: add inline keyword.
This commit is contained in:
parent
95e736c83b
commit
36b218de91
5 changed files with 9 additions and 3 deletions
|
|
@ -119,6 +119,7 @@ void HlslScanContext::fillInKeywordMap()
|
|||
(*KeywordMap)["inout"] = EHTokInOut;
|
||||
(*KeywordMap)["layout"] = EHTokLayout;
|
||||
(*KeywordMap)["globallycoherent"] = EHTokGloballyCoherent;
|
||||
(*KeywordMap)["inline"] = EHTokInline;
|
||||
|
||||
(*KeywordMap)["point"] = EHTokPoint;
|
||||
(*KeywordMap)["line"] = EHTokLine;
|
||||
|
|
@ -616,6 +617,7 @@ EHlslTokenClass HlslScanContext::tokenizeIdentifier()
|
|||
case EHTokPrecise:
|
||||
case EHTokLayout:
|
||||
case EHTokGloballyCoherent:
|
||||
case EHTokInline:
|
||||
return keyword;
|
||||
|
||||
// primitive types
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue