webgpu-native / webgpu-headers

**NOT STABLE YET!** See README.
https://webgpu-native.github.io/webgpu-headers/
BSD 3-Clause "New" or "Revised" License
394 stars 45 forks source link

Should struct-chaining errors always be WGPUStatus, or device-errors where possible? #383

Closed kainino0x closed 3 weeks ago

kainino0x commented 1 month ago

Why can't [struct chaining errors] piggy-back on device errors when possible? There's a lot of call that take extensible structs and that return void.

_Originally posted by @Kangz in https://github.com/webgpu-native/webgpu-headers/pull/377#discussion_r1807799509_

kainino0x commented 1 month ago

me:

I am pretty sure you're right that's what we were supposed to do. I kind of lost the thread of the discussion over the many issues we've discussed this stuff, but we were mostly talking about the ones with out-structs.

kainino0x commented 3 weeks ago

Never mind, I finally found where we decided to do this: https://github.com/webgpu-native/webgpu-headers/issues/115#issuecomment-1701570813