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

Implement clear_buffer on web #3426

Merged
merged 2 commits into from
Jan 26, 2023
Merged

Conversation

raphlinus
Copy link
Contributor

@raphlinus raphlinus commented Jan 26, 2023

This was "TODO" but would be very nice to have.

Checklist

  • Run cargo clippy.
  • Run RUSTFLAGS=--cfg=web_sys_unstable_apis cargo clippy --target wasm32-unknown-unknown if applicable.
  • Add change to CHANGELOG.md. See simple instructions inside file.

Connections
There's a workaround for this in linebender/vello#267

Description
The clear_buffer() method is an empty TODO on the web back-end. This patch fills in the obvious implementation.

Testing
It's not carefully tested just yet, but we do plan to soon. Necessary steps will be landing vello#267, updating vello to wgpu 0.15 (vello#263 is the PR in progress for that), removing the hacky workaround, and verifying that it works in Chrome Canary.

This was "TODO" but would be very nice to have.
@cwfitzgerald cwfitzgerald added the PR: needs back-porting PR with a fix that needs to land on crates label Jan 26, 2023
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

Thanks!

@cwfitzgerald cwfitzgerald enabled auto-merge (squash) January 26, 2023 22:12
@cwfitzgerald cwfitzgerald enabled auto-merge (squash) January 26, 2023 22:17
@cwfitzgerald cwfitzgerald merged commit fe2b230 into gfx-rs:master Jan 26, 2023
cwfitzgerald pushed a commit that referenced this pull request Feb 9, 2023
@cwfitzgerald cwfitzgerald removed the PR: needs back-porting PR with a fix that needs to land on crates label Feb 22, 2023
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