Looks like web_sys now natively exposes the binding to create ImageData from js_sys::Uint8ClampedArray. This feature does some trivial cleanup in examples/raytrace-parallel, the existing code basically lives in a more centralised place now.
Testing: compiles, the example runs fine when served locally to my browser.
Looks like
web_sys
now natively exposes the binding to createImageData
fromjs_sys::Uint8ClampedArray
. This feature does some trivial cleanup in examples/raytrace-parallel, the existing code basically lives in a more centralised place now.Testing: compiles, the example runs fine when served locally to my browser.