mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-27 01:05:03 +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);
|
final_layout = Some($crate::image::Layout::ColorAttachmentOptimal);
|
||||||
}
|
}
|
||||||
),*
|
)*
|
||||||
|
|
||||||
$(
|
$(
|
||||||
if $input_atch == num {
|
if $input_atch == num {
|
||||||
@ -493,8 +493,8 @@ macro_rules! ordered_passes_renderpass {
|
|||||||
}
|
}
|
||||||
final_layout = Some($crate::image::Layout::ShaderReadOnlyOptimal);
|
final_layout = Some($crate::image::Layout::ShaderReadOnlyOptimal);
|
||||||
}
|
}
|
||||||
),*
|
)*
|
||||||
}),*
|
})*
|
||||||
|
|
||||||
(initial_layout.unwrap(), final_layout.unwrap())
|
(initial_layout.unwrap(), final_layout.unwrap())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user