Attempt to fix input attachment

This commit is contained in:
hodasemi 2023-01-22 15:42:16 +01:00
parent a6004c0824
commit 495892cfa8

View file

@ -62,7 +62,7 @@ impl CustomTarget {
VK_ATTACHMENT_LOAD_OP_DONT_CARE,
VK_ATTACHMENT_STORE_OP_DONT_CARE,
VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL,
if self.attach_sampler || self.use_as_input {
if self.attach_sampler {
VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
} else {
VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL