Skip to content

webidl: webgpu: make the size argument to copyBufferToBuffer optional #4508

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andyleiserson
Copy link

This matches the latest spec.

There is also a 3-argument overload of copyBufferToBuffer, which I have not added, as it poses some additional challenges, and I do not immediately need it.

See https://www.w3.org/TR/webgpu/#commands-buffer-copies for context for the following explanation.

The logic in wasm-bindgen that generates unique names for the different overloads does not understand that the 3-argument overload is omitting the 2nd and 4th arguments to the 5-argument overload. So it generates names based on every argument starting with the 2nd, which (1) changes existing names for variants of the 5-argument overload, (2) includes with_gpu_buffer for the 3rd argument in the names even though that has no actual disambiguation purpose.

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.

1 participant