Catch attachment input case in subpass
This commit is contained in:
parent
cab3d9e530
commit
12e888c7e5
1 changed files with 5 additions and 1 deletions
|
@ -62,7 +62,11 @@ impl CustomTarget {
|
||||||
height: u32,
|
height: u32,
|
||||||
sample_count: VkSampleCountFlags,
|
sample_count: VkSampleCountFlags,
|
||||||
) -> Result<AttachmentInfo> {
|
) -> 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);
|
let store_operation = SubPassBuilder::store_op(self.store_on_save);
|
||||||
|
|
||||||
// set clear values
|
// set clear values
|
||||||
|
|
Loading…
Reference in a new issue