'mix' : ambiguous function signature match
ymiroshnyk opened this issue · comments
Generated code mix(0,10,.5)
gives an error while shader compilation:
'mix' : ambiguous function signature match: multiple signatures match under implicit type conversion
Do you have a simple repro?
What might happen is that you define a variable like float m=10
and it got inlined. The workaround is to declare it as float m=10.;
so that it remains a float value after inlining.
Here is this piece of code:
float value_q = 0;
float expr_m = mix(value_q, 10, 0.5);
and apparently after inlining value_q
the function call becomes ambiguous.
Thank you for a clue. I don't think it is a bug. Rather expected behavior.