mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 00:11:11 +01:00
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>