mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-23 07:15:31 +00:00
Fix render pass macro in case of multiple subpasses
This commit is contained in:
parent
fdcf942ece
commit
e2fb46a11c
@ -484,7 +484,7 @@ macro_rules! ordered_passes_renderpass {
|
||||
}
|
||||
final_layout = Some($crate::image::Layout::ColorAttachmentOptimal);
|
||||
}
|
||||
),*
|
||||
)*
|
||||
|
||||
$(
|
||||
if $input_atch == num {
|
||||
@ -493,8 +493,8 @@ macro_rules! ordered_passes_renderpass {
|
||||
}
|
||||
final_layout = Some($crate::image::Layout::ShaderReadOnlyOptimal);
|
||||
}
|
||||
),*
|
||||
}),*
|
||||
)*
|
||||
})*
|
||||
|
||||
(initial_layout.unwrap(), final_layout.unwrap())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user