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

Validate that inputs are created from the right device #3927

Closed
nical opened this issue Jul 13, 2023 · 0 comments · Fixed by #4207
Closed

Validate that inputs are created from the right device #3927

nical opened this issue Jul 13, 2023 · 0 comments · Fixed by #4207
Labels
area: validation Issues related to validation, diagnostics, and error handling

Comments

@nical
Copy link
Contributor

nical commented Jul 13, 2023

Description

IDs currently do not contain a way to identify (and therefore validate) the associated device.

Repro steps

See the test added in #3926

Expected vs observed behavior

When using a resource created via the wrong device, the index of the resource ends up pointing to either another resource in the current device or some out of bounds non-existent resource.

As a result, the wrong resource is used or the code panics when trying to access it.

Platform

All platforms and configurations.

@Wumpf Wumpf added the area: validation Issues related to validation, diagnostics, and error handling label Jul 22, 2023
@teoxoy teoxoy added this to the WebGPU Specification V1 milestone Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: validation Issues related to validation, diagnostics, and error handling
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants