Non-functional HLSL: Factor out built-ins from splitting and related simplifications.

This commit is contained in:
John Kessenich
2017-08-07 23:40:05 -06:00
parent eaed06823a
commit ecd08bc36c
4 changed files with 40 additions and 49 deletions

View File

@@ -616,7 +616,7 @@ bool HlslGrammar::acceptFullySpecifiedType(TType& type, TIntermNode*& nodeList)
qualifier.readonly = type.getQualifier().readonly;
}
if (type.getQualifier().builtIn != EbvNone)
if (type.isBuiltIn())
qualifier.builtIn = type.getQualifier().builtIn;
type.getQualifier() = qualifier;