Catch attachment input case in subpass

This commit is contained in:
hodasemi 2023-01-26 10:13:22 +01:00
parent cab3d9e530
commit 12e888c7e5

View file

@ -62,7 +62,11 @@ impl CustomTarget {
height: u32,
sample_count: VkSampleCountFlags,
) -> Result<AttachmentInfo> {
let clear_operation = SubPassBuilder::clear_op(self.clear_on_load);
let clear_operation = SubPassBuilder::clear_op(if self.use_as_input {
false
} else {
self.clear_on_load
});
let store_operation = SubPassBuilder::store_op(self.store_on_save);
// set clear values