-
Notifications
You must be signed in to change notification settings - Fork 53
Add and document many synchronous error statuses #377
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
Conversation
Fixes webgpu-native#255 Fixes (again?) webgpu-native#291 Issue webgpu-native#225 Fixes webgpu-native#64
webgpu.yml
Outdated
- name: device_lost | ||
doc: The @ref WGPUDevice configured on the @ref WGPUSurface was lost. | ||
- name: error | ||
doc: The surface is not configured, or there was a @ref StructChainingError. |
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.
Maybe just point at the Surface.md article for a description of what might return an error?
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.
I kind of think struct chaining isn't really relevant to pile into the Surface.md article and prefer to just document it here.
webgpu.yml
Outdated
doc: | | ||
TODO | ||
type: bool | ||
Returns @ref WGPUStatus_Error (and leaves `limits` unchanged) if there was a @ref StructChainingError. |
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.
What about if the device/adapter itself is an error? IMHO the error cases should be defined in the algorithm steps of the articles, and not call out a particular kind of error.
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.
This is meant to mirror adapter.limits
/device.limits
in JS, where there is no possibility of the JS-wrapper object being an error.
I'm OK with moving this stuff into articles if we want to write those, but it's easier to start documenting things here and move them to articles if they get larger.
Revised finally. |
@Kangz re-review bump! |
ba7612f
to
e6fdcca
Compare
Sorry this is a lot of things in one PR, but I kept changing all of the docs to be consistent with each other, so this was easier.
(Can split if there are some parts that need more time to discuss.)
Fixes #255
Fixes #291 (again?)
IssueFixes #225Fixes #64 (EDIT: and its duplicate #194)
EDIT: also fixes #115