5

Vulkan spec says:

Resolve Attachment

A subpass attachment point, or image view, that is the target of a multisample resolve operation from the corresponding color attachment at the end of the subpass.

Can I get a more noob-friendly description of what a Resolve Attachment is?

Dess
  • 2,064
  • 19
  • 35
  • How "noob friendly" does it need to be? Do you know what a "multisample resolve operation" is? – Nicol Bolas Sep 27 '20 at 17:53
  • No, I don't know what a "multisample resolve operation" is. – Dess Sep 27 '20 at 17:55
  • Do you know what "multisampling" is? Not merely in its effects (ie: it does antialiasing), but how it actually works? – Nicol Bolas Sep 27 '20 at 17:55
  • I only know that multisampling is used for antialiasing. Haven't used it much, yet, other than turning on some bits, here and there, related to it. – Dess Sep 27 '20 at 18:00

1 Answers1

3

Resolving Multisample Images

During the resolve the samples corresponding to each pixel location in the source are converted to a single sample before being written to the destination. If the source formats are floating-point or normalized types, the sample values for each pixel are resolved in an implementation-dependent manner. If the source formats are integer types, a single sample’s value is selected for each pixel.

Using a Resolve Attachment you can "downsample" an image. I assume this can be more efficient than issuing a vkCmdResolveImage after the renderpass.

Szabolcs Dombi
  • 5,493
  • 3
  • 39
  • 71