diff --git a/wgpu-core/src/device/mod.rs b/wgpu-core/src/device/mod.rs index e09329f6b3..62fa2386c4 100644 --- a/wgpu-core/src/device/mod.rs +++ b/wgpu-core/src/device/mod.rs @@ -4520,8 +4520,17 @@ impl Global { Ok(pair) => pair, Err(e) => break e, }; + let ref_count = pipeline.life_guard.add_ref(); let id = fid.assign(pipeline, &mut token); + log::info!("Created render pipeline {:?} with {:?}", id, desc); + + device + .trackers + .lock() + .render_pipes + .init(id, ref_count, PhantomData) + .unwrap(); return (id.0, None); }; @@ -4652,8 +4661,17 @@ impl Global { Ok(pair) => pair, Err(e) => break e, }; + let ref_count = pipeline.life_guard.add_ref(); let id = fid.assign(pipeline, &mut token); + log::info!("Created compute pipeline {:?} with {:?}", id, desc); + + device + .trackers + .lock() + .compute_pipes + .init(id, ref_count, PhantomData) + .unwrap(); return (id.0, None); };