Subpasses
Subpasses are a concept in graphics APIs like Vulkan that allow for the division of a render pass into distinct stages. A render pass is a collection of subpasses, and each subpass performs a specific rendering operation. This modular approach offers several advantages, particularly in optimizing graphics performance.
Within a single render pass, subpasses can read from and write to attachments. Attachments are memory regions
For instance, a common use case for subpasses is deferred rendering. The first subpass might perform the
Subpasses also enable hardware optimizations. Graphics hardware can recognize these dependencies and perform operations in a