gpu.js
gpu.js copied to clipboard
nativeFunctions parameter on createKernel not respected
picture a confused cat
What is wrong?
There is a parameter in createKernel that allows adding native functions. It fails to function.
Where does it happen?
https://observablehq.com/d/a8a46a5bcd80da51@259
How do we replicate the issue?
See above.
How important is this (1-5)?
2? It makes it so that kernels that depend on native functions need to have their logic split: the native functions must be place before any call to createKernel on the same gpu object.
Expected behavior (i.e. solution)
Either remove the option (from the github page too) or make it work.