4 ms·
so you can only pass simple types and nothing like a framebuffer array ? great work btw!
by kayoone 9y ago
so you can only pass simple types and nothing like a framebuffer array ? great work btw!
- wofo 9y agoSince WASM in its current state is meant as a compilation target for C, it is usually possible to do things "the C way". For instance, you can allocate a buffer on the Javascript side and pass a pointer to the Rust side, which then can write to it. You can also allocate it on the Rust side and return it. This is for instance what you do when you want to return a string.