wgpu
wgpu copied to clipboard
Clean up weak references to texture views and bind groups
Description
Cleanup weak references to texture views and bind groups to prevent leak.
Checklist
- [x] Run
cargo fmt. - [ ] Run
cargo clippy. If applicable, add:- [ ]
--target wasm32-unknown-unknown - [ ]
--target wasm32-unknown-emscripten
- [ ]
- [ ] Run
cargo xtask testto run tests. - [x] Add change to
CHANGELOG.md. See simple instructions inside file.
Tagging jimb on this as he's most aware of the lifetime management in wgpu-core
@xiaopengli89 I've pushed a commit that makes the change I suggested. Could you look it over and see if it seems okay, and verify that it does fix the leak?
@xiaopengli89 I've pushed a commit that makes the change I suggested. Could you look it over and see if it seems okay, and verify that it does fix the leak?
@jimblandy LGTM.
@jimblandy Sorry, we cannot use the change because suspected_resources only contains resources whose user handle has died.