mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 14:55:05 +00:00
729ecb1404
582: Track pipeline layout lifetime r=grovesNL a=kvark Fixes #580 This one is interesting: it's not instantly destroyed when dropped, like bind group layouts. And it's not tracked for GPU usage like the resources. It's somewhat in-between. We have the following classes of tracking now: 1. no tracking, destroyed on drop. Applies to: bind group layouts, adapters 2. only CPU-side tracking. They go to "suspected" list on drop of self or anything that can point to them. Applies to: pipeline layouts 3. full GPU tracking. They go to "suspected" list on drop, then get associated with active submission before destruction. Applies to: buffers, textures, views, bind groups, pipelines Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |