HLSL: Recognize types declared as identifiers as identifiers.

E.g., in

    float float;
    (float) * float;

The "(float)" is not a type cast, it is an expression.
This commit is contained in:
John Kessenich
2017-06-13 22:22:52 -06:00
parent 91c46c6567
commit 0320d090e2
4 changed files with 127 additions and 76 deletions

View File

@@ -25,6 +25,7 @@ float4 main() : SV_Target0
float = float + int + uint + min16float + min10float + (bool[0] ? int : float) + fn(float);
half2x3 half2x3;
half2x3._11 = (float) * float;
return float + half2x3._11;
}