Assert check for correct sub pass index

This commit is contained in:
hodasemi 2023-01-26 10:15:14 +01:00
parent 12e888c7e5
commit a36ba524ac

View file

@ -342,6 +342,11 @@ impl RenderTarget {
} }
pub fn end(&self, buffer_recorder: &mut CommandBufferRecorder<'_>) { pub fn end(&self, buffer_recorder: &mut CommandBufferRecorder<'_>) {
debug_assert_eq!(
self.current_subpass.load(SeqCst) as usize,
self.sub_passes.len() - 1
);
buffer_recorder.end_render_pass(); buffer_recorder.end_render_pass();
} }
} }