Skip to content
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): invalidate GPUAdapter when a device is created #23752

Merged

Conversation

crowlKats
Copy link
Member

This removes the need for using Deno.resources to close the gpuadapter resource, while being more spec compliant.

@lucacasonato
Copy link
Member

Does spec agree that you can only create one device per adapeter?

@crowlKats
Copy link
Member Author

@lucacasonato yes. I discussed this topic with @jimblandy as i asked about a way to destroy gpuadapters, and this is actually what should happen, making having a gpuadapter.destroy unecessary.
Reference: second line of https://gpuweb.github.io/gpuweb/#dom-gpuadapter-requestdevice
No browser follows this behaviour yet as this was a relatively recent change

@crowlKats crowlKats merged commit 6066e06 into denoland:main May 10, 2024
17 checks passed
@crowlKats crowlKats deleted the webgpu-disable-adapter-on-device-creation branch May 10, 2024 11:10
dsherret pushed a commit that referenced this pull request May 10, 2024
This removes the need for using `Deno.resources` to close the gpuadapter
resource, while being more spec compliant.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants