I'm trying to figure out how to use VkSubpassDependency to account for multiple attachment layout transitions (especially those of different types). I see a Sascha Willems example on how to use access masks in the subpass dependency to create an image layout transition to the final layout, but Sascha only uses a single attachment. In my situation I have multiple attachments, one for the color, one for the depth, each with a different final transition. Do I just shove more access mask bits in? from the spec, it looks like I would actually have to create a new subpass dependency with stage masks on a different part of the pipeline that involves color.
Any synchronization command that takes both stage masks and access masks uses both to define the access scopes - only the specified access types performed by the specified stages are included in the access scope. An application must not specify an access flag in a synchronization command if it does not include a pipeline stage in the corresponding stage mask that is able to perform accesses of that type.
I can't find any examples of this, and I don't see this outlined anywhere.