More idiomatic Adapter structs and methods - #26
Conversation
|
Do tell me if I'm going too fast, or if you want to wait to decide how you'd handle the other stuff like the async callbacks before tackling all the rest XD |
|
Going fast is okay here, we still have time to review things in the draft PR before it gets merged into main anyway. As far as AdapterInfo containing extra stuff, |
|
In fact, since the chained struct isn't used here, the wrapper code doesn't need it, as long as the underlying struct still has it. So you could remove it from |
|
Yeah, that's my concern |
I did the work for Adapter too.
There is one caveat, however: Apparently, AdapterInfo may contain extra stuff. However, I have searched all throughout the various documentations of WebGPU, and I have not found a single thing about it.
In fact, I am starting to suspect that there isn't any...
In any case, here's what I did.