HLSL: Fix #771: add inline keyword.
This commit is contained in:
@@ -627,6 +627,9 @@ bool HlslGrammar::acceptQualifier(TQualifier& qualifier)
|
||||
case EHTokGloballyCoherent:
|
||||
qualifier.coherent = true;
|
||||
break;
|
||||
case EHTokInline:
|
||||
// TODO: map this to SPIR-V function control
|
||||
break;
|
||||
|
||||
// GS geometries: these are specified on stage input variables, and are an error (not verified here)
|
||||
// for output variables.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -66,6 +66,7 @@ enum EHlslTokenClass {
|
||||
EHTokInOut,
|
||||
EHTokLayout,
|
||||
EHTokGloballyCoherent,
|
||||
EHTokInline,
|
||||
|
||||
// primitive types
|
||||
EHTokPoint,
|
||||
|
||||
Reference in New Issue
Block a user