Fix render pass macro in case of multiple subpasses

This commit is contained in:
Pierre Krieger 2016-03-25 17:45:20 +01:00
parent fdcf942ece
commit e2fb46a11c

View File

@ -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())
}