-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
fix(ext/webgpu): fix GPUAdapter#info
fails and add GPUDevice#adapterInfo
#26844
base: main
Are you sure you want to change the base?
Conversation
@crowlKats Please take a look! |
By initializing |
420ea5e
to
8f1d20d
Compare
FYI @petamoriken i will be reviewing this alongside all other webgpu and graphics related PRs throughout the day today |
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.
A problem with this is having to disable sanitizeResources
. GPUAdapter as far as i know has no plans to be destroyable, which is the reason why we used take
. I will have to bring this up in the next wgpu meeting to get a clearer idea of whats going on, so will have to wait until next week.
Fix #25874
Fix #26760
GPUAdapter
cannot be destroyed manually, so this PR addsFinalizationRegistry
to release its resource when GC'd.And, this PR adds
GPUDevice#adapterInfo
.gpuweb/gpuweb#4809
https://groups.google.com/a/chromium.org/g/blink-dev/c/q4tpIeEydRI