Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use web_sys::ImageData in examples/raytrace-parallel #4184

Merged

Conversation

zhiz-m
Copy link
Contributor

@zhiz-m zhiz-m commented Oct 11, 2024

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.

Copy link
Collaborator

@daxpedda daxpedda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aye, good stuff.
Thank you!

@daxpedda daxpedda merged commit 724b447 into rustwasm:main Oct 12, 2024
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants