HLSL: phase 2d: minor cleanup, & allow operator[] on non-rw textures

Improve comments.
A few tweaked lines allow [] on non-rw tx.  Add test case for this.
Improve VectorTimesScalar handling.
This commit is contained in:
steve-lunarg
2016-10-10 10:00:14 -06:00
parent 0de16da2c0
commit 07830e805b
8 changed files with 923 additions and 92 deletions

View File

@@ -1948,7 +1948,7 @@ bool HlslGrammar::acceptUnaryExpression(TIntermTyped*& node)
return true;
node = intermediate.addUnaryMath(unaryOp, node, loc);
node = parseContext.handleLvalue(loc, "", node);
node = parseContext.handleLvalue(loc, "unary operator", node);
return node != nullptr;
}
@@ -2064,7 +2064,7 @@ bool HlslGrammar::acceptPostfixExpression(TIntermTyped*& node)
case EOpPostDecrement:
// DEC_OP
node = intermediate.addUnaryMath(postOp, node, loc);
node = parseContext.handleLvalue(loc, "", node);
node = parseContext.handleLvalue(loc, "unary operator", node);
break;
default:
assert(0);