-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Update WebGPU's webidl #3480
Update WebGPU's webidl #3480
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Please remove the bump, this is something we will do separately.
EDIT: Please add a changelog entry as well.
Done :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, tiny nit left.
Co-authored-by: daxpedda <daxpedda@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thank you for your contribution!
Retains some workarounds that cause issues with generation: * `GPUPipelineError`'s first argument remains required; see also [`rustwasm/wasm-bindgen`rustwasm#3480](rustwasm#3480). * `[AllowShared] BufferSource data` arguments in `GPUQueue` methods are not yet changed to `AllowSharedBufferSource data`.
Retains some workarounds that cause issues with generation: * `GPUPipelineError`'s first argument remains required; see also [`rustwasm/wasm-bindgen`rustwasm#3480](rustwasm#3480). * `[AllowShared] BufferSource data` arguments in `GPUQueue` methods are not yet changed to `AllowSharedBufferSource data`.
Retains some workarounds that cause issues with generation: * `GPUPipelineError`'s first argument remains required; see also [`rustwasm/wasm-bindgen`rustwasm#3480](rustwasm#3480). * `[AllowShared] BufferSource data` arguments in `GPUQueue` methods are not yet changed to `AllowSharedBufferSource data`.
I updated WebGPU's webidl from the current state of the spec.
However, I made one manual change to the IDL:
The constructor of GPUPipelineError has an optional argument followed by a required argument, which webidl can't handle (or is illegal?). As a fix, I made the optional argument (
message
) a required one.I think
GPUPipelineError
is not meant to be created by a user, so I'm not sure how big of a deal this is.