Skip to content

Commit 43bc09c

Browse files
committed
rt(vk): dispose created image views
1 parent 04f3b92 commit 43bc09c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

librashader-runtime-vk/src/filter_chain.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ impl FrameResiduals {
219219
self.image_views.push(output_framebuffer.image_view);
220220
}
221221

222+
pub(crate) fn dispose_image_view(&mut self, image_view: vk::ImageView) {
223+
self.image_views.push(image_view);
224+
}
225+
222226
pub(crate) fn dispose_owned(&mut self, owned: OwnedImage) {
223227
self.owned.push(owned)
224228
}
@@ -882,6 +886,8 @@ impl FilterChainVulkan {
882886
intermediates.dispose_framebuffers(residual_fb);
883887
}
884888

889+
intermediates.dispose_image_view(original_image_view);
890+
885891
self.push_history(input, cmd)?;
886892
self.common.internal_frame_count = self.common.internal_frame_count.wrapping_add(1);
887893
Ok(())

0 commit comments

Comments
 (0)