Merge error ID generation into object creation #1032
Labels
area: api
Issues related to API surface
help required
We need community help to make this happen.
type: enhancement
New feature or request
Is your feature request related to a problem? Please describe.
All of the clients today have to go through this pattern where they detect an error generated by
create_xxx
and they still create an error ID for it withxxx_error
. This may be convenient for wgpu-core, but it's not convenient for all the users. Now that we started working on Gecko error model, it would be very useful to streamline this aspect.Describe the solution you'd like
create_xxx
would always return an ID. It may return an optional error in addition to that.Describe alternatives you've considered
Keep them separate.
Additional context
There seems to be an opportunity to merge this with #985 ?
The text was updated successfully, but these errors were encountered: