gfx-rs / wgpu

A cross-platform, safe, pure-Rust graphics API.
https://wgpu.rs
Apache License 2.0
11.46k stars 855 forks source link

Device mismatch validation improvements #5841

Closed teoxoy closed 1 week ago

teoxoy commented 1 week ago

At a high level this PR adds a new trait that children of the device implement which we use for device mismatch validation.

The validation now relies on Arc::ptr_eq rather than IDs.

Part of https://github.com/gfx-rs/wgpu/issues/5121.

PR doesn't need to be squashed, each commit builds by itself.