In the multisampling example right here, it uses differing a size for pResolveAttachments that differs from colorAttachmentCount (with resolveReferences being an std::array of size 2). This is covered in the Vulkan specification under VkSubpassDescription in the (renderpass section).
pResolveAttachments is NULL or an array of colorAttachmentCount VkAttachmentReference structures [...]
In the multisampling example right here, it uses differing a size for pResolveAttachments that differs from colorAttachmentCount (with resolveReferences being an std::array of size 2). This is covered in the Vulkan specification under VkSubpassDescription in the (renderpass section).