FolkComputer / folk

🎁 Physical computing system.
https://folk.computer
Apache License 2.0
75 stars 4 forks source link

Wish the GPU compiles function #145

Closed osnr closed 3 months ago

osnr commented 3 months ago

Lets you make GPU functions without needing to manually run stuff on the display process. Fairly hacky but feels mostly right. Kind of backported from osnr/db

See https://github.com/FolkComputer/folk/compare/osnr/gpu-function-wish?expand=1#diff-87f33ea4ae485ce1cca79a96007daf340eedf47d933a07387882788635d55817

Functions all live in a global namespace for now.

Last writer wins for functions and pipelines (so try to avoid name collisions)

It seems to be backwards compatible with old users of Gpu::fn?

TODO: edit wiki instructions on merge

osnr commented 3 months ago

TODO: replace ::invBilinear in cnc on merge