mirror of
https://github.com/storytold/craft-libs.git
synced 2026-12-01 02:36:54 +01:00
- An allocation error, a failed read wait, an oversized upload and a bad read handle check the device and return GpuFault::DeviceLost when it was destroyed while wgpu still defers its device-lost callback. - poll_reads checks the device before failing pending reads with a recorded error, and when a mapped read's error turns out to be a loss, every outstanding read fails with that loss in the same call.