Merge pull request #943 from xxxbxxx/for-upstream-1
hlsl: "in out" is also an inout qualifier.
This commit is contained in:
@@ -680,10 +680,10 @@ bool HlslGrammar::acceptQualifier(TQualifier& qualifier)
|
||||
qualifier.noContraction = true;
|
||||
break;
|
||||
case EHTokIn:
|
||||
qualifier.storage = EvqIn;
|
||||
qualifier.storage = (qualifier.storage == EvqOut) ? EvqInOut : EvqIn;
|
||||
break;
|
||||
case EHTokOut:
|
||||
qualifier.storage = EvqOut;
|
||||
qualifier.storage = (qualifier.storage == EvqIn) ? EvqInOut : EvqOut;
|
||||
break;
|
||||
case EHTokInOut:
|
||||
qualifier.storage = EvqInOut;
|
||||
|
||||
Reference in New Issue
Block a user