HLSL: Allow arbitrary baseType -> baseType conversion of calling arguments.

This also puts a stake in the ground as to which is better when selection
from multiple signatures.
This commit is contained in:
John Kessenich 2016-08-25 10:49:21 -06:00
parent 4c3a7fd100
commit 90dd70f752
6 changed files with 1395 additions and 464 deletions

View file

@ -750,6 +750,7 @@ bool TIntermediate::canImplicitlyPromote(TBasicType from, TBasicType to, TOperat
case EOpDivAssign: // ...
case EOpModAssign: // ...
case EOpReturn: // function returns can also perform arbitrary conversions
case EOpFunctionCall: // conversion of a calling parameter
return true;
default:
break;