Represent the window scale factor conversions in the IR

That means less code in the generators and easier to extend in the
future with more built-in functions.
This commit is contained in:
Simon Hausmann 2020-08-04 09:10:24 +02:00
parent 1d0eacc87f
commit 41671e3efb
6 changed files with 87 additions and 26 deletions

View file

@ -117,6 +117,7 @@ fn to_eval_value<'cx>(
| Type::Component(_)
| Type::Builtin(_)
| Type::Native(_)
| Type::Function { .. }
| Type::Model
| Type::Signal
| Type::Easing