HLSL: Flatten whole-struct assigns and returns when targeting flattened I/O structs.

This commit is contained in:
John Kessenich
2016-09-16 03:05:12 -06:00
parent f8e494c18c
commit d21baed6bc
67 changed files with 4024 additions and 2886 deletions

View File

@@ -1672,7 +1672,7 @@ bool HlslGrammar::acceptAssignmentExpression(TIntermTyped*& node)
return false;
}
node = intermediate.addAssign(assignOp, node, rightNode, loc);
node = parseContext.handleAssign(loc, assignOp, node, rightNode);
if (node == nullptr) {
parseContext.error(loc, "could not create assignment", "", "");
return false;