I'm trying to understand why we need VkAttachmentReference::layout
? Documentation says:
layout
is aVkImageLayout
value specifying the layout the attachment uses during the subpass.
In other words it tells to which layout the attachment will transition before subpass begins.
But this information already available through VkAttachmentDescription::initialLayout
. This is a quote from the documentation:
initialLayout
is the layout the attachment image subresource will be in when a render pass instance begins.
Isn't VkAttachmentReference::layout
redundand because it exactly repeats VkAttachmentDescription::initialLayout
?