HLSL: allow promotion from 1-vector types to scalars, e.g, float<-float1
Previously, an error was thrown when assigning a float1 to a scalar float,
or similar for other basic types. This allows that.
Also, this allows calling functions accepting scalars with float1 params,
so for example sin(float1) will work. This is a minor change in
HlslParseContext::findFunction().
Showing
Test/baseResults/hlsl.promote.vec1.frag.out
0 → 100644
Test/hlsl.promote.vec1.frag
0 → 100644
Please
register
or
sign in
to comment