I read the Color blending Vulkan tutorial.
and this page says :
The first struct, VkPipelineColorBlendAttachmentState contains the configuration per attached framebuffer and the second struct, VkPipelineColorBlendStateCreateInfo contains the global color blending settings.In our case we only have one framebuffer
The second structure references the array of structures for all of the framebuffers
However, in Framebuffers chapter, framebuffers were created as many as the number of imageView.
But the code associated with it is the same.
And per-framebuffer struct no framebuffer-related members.
How attach color blend attachment to framebuffer?
My guess is that automatically attachment VkFramebufferCreateInfo::pAttachments when command recording(render pass begin), it's right?
or VkSubpassDescription::pColorAttachments ?
because specification say:
The value of attachmentCount must be greater than the index of all color attachments that are not VK_ATTACHMENT_UNUSED in VkSubpassDescription::pColorAttachments or VkSubpassDescription2::pColorAttachments for the subpass in which this pipeline is used.