Attachments that are used (input / color / depth attachment)
in a subpass are not allowed in the preserved list, so if they
are used as a color, depth or input attachment they should
be consided preserved. Color and depth attachments were accounted
for, this commit adds input attachment
Change-Id: Id87c3c1546092bc64b293bead1d997e0f61f7990
for (uint32_t j = 0; j < subpass.colorAttachmentCount; ++j) {
if (attachment == subpass.pColorAttachments[j].attachment) return true;
}
+ for (uint32_t j = 0; j < subpass.inputAttachmentCount; ++j) {
+ if (attachment == subpass.pInputAttachments[j].attachment) return true;
+ }
if (subpass.pDepthStencilAttachment && subpass.pDepthStencilAttachment->attachment != VK_ATTACHMENT_UNUSED) {
if (attachment == subpass.pDepthStencilAttachment->attachment) return true;
}