hlsl: "in out" is also an inout qualifier.

This commit is contained in:
xavier
2017-06-20 07:49:22 +02:00
parent f02c8e6ba1
commit b1d97537e8
3 changed files with 262 additions and 230 deletions

View File

@@ -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;