mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
[core] IDed encoders needs to be dropped (#9782)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
3 files changed
+15
-1
No files matched your search
@@ -648,6 +648,10 @@ impl Global {
|
||||
.expect("ComputePasses should not be accessed concurrently");
|
||||
self.compute_pass_end(&mut pass)
|
||||
}
|
||||
|
||||
pub fn compute_pass_drop(&self, pass_id: id::ComputePassEncoderId) {
|
||||
self.hub.compute_passes.remove(pass_id);
|
||||
}
|
||||
}
|
||||
|
||||
pub(super) fn encode_compute_pass(
|
||||
@@ -1281,7 +1285,7 @@ impl Global {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn compute_pass_set_bindgroup_with_id(
|
||||
pub fn compute_pass_set_bind_group_with_id(
|
||||
&self,
|
||||
pass_id: id::ComputePassEncoderId,
|
||||
index: u32,
|
||||
|
||||
@@ -2279,6 +2279,10 @@ impl Global {
|
||||
.expect("RenderPasses should not be accessed concurrently");
|
||||
self.render_pass_end(&mut pass)
|
||||
}
|
||||
|
||||
pub fn render_pass_drop(&self, pass: id::RenderPassEncoderId) {
|
||||
self.hub.render_passes.remove(pass);
|
||||
}
|
||||
}
|
||||
|
||||
pub(super) fn encode_render_pass(
|
||||
|
||||
@@ -1253,6 +1253,12 @@ impl Global {
|
||||
(id, error)
|
||||
}
|
||||
|
||||
pub fn render_bundle_encoder_drop(&self, render_bundle_encoder_id: id::RenderBundleEncoderId) {
|
||||
let hub = &self.hub;
|
||||
|
||||
let _bundle_encoder = hub.render_bundle_encoders.remove(render_bundle_encoder_id);
|
||||
}
|
||||
|
||||
pub fn render_bundle_drop(&self, render_bundle_id: id::RenderBundleId) {
|
||||
profiling::scope!("RenderBundle::drop");
|
||||
api_log!("RenderBundle::drop {render_bundle_id:?}");
|
||||
|
||||
Reference in new issue
Block a user