Assert check for correct sub pass index
This commit is contained in:
parent
12e888c7e5
commit
a36ba524ac
1 changed files with 5 additions and 0 deletions
|
@ -342,6 +342,11 @@ impl RenderTarget {
|
|||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue