Open texone opened 3 years ago
Would be great to have a better way to handle this- the current workarounds are limited and stop the same function being swapped out more then once: https://github.com/TheFuseLab/Fuse/commit/7555dafaf5dcba8ac29f748d79bb996e5dafa712
If the higher function is defined in the template system rather then from mixin then this will work better, but it's not really scalable or modular for the sdsl files like that.
Just pinging this to highlight for discussion
We want to find a better way to handle delegates without strange templating syntax prefarebly by using mixins here is a proposal in shader code.
First write an abstract shader class that is used
Fuse will generate an internal shader with the implementation
This will be placed into the final generated shader with composition
This could also be used to already define delegate functions in the mixin like this
Fuse would use one of the provides functions