mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
* Ensure device lost closure is called exactly once before being dropped. This requires a change to the Rust callback signature, which is now Fn instead of FnOnce. When the Rust callback or the C closure are dropped, they will panic if they haven't been called. `device_drop` is changed to call the closure with a message of "Device dropped." A test is added.