Framebuffers & Render Passes

🖼️ Vulkan Render Passes, Subpasses & Framebuffers

In Vulkan prior to 1.3, rendering commands must execute inside an explicit VkRenderPass. A render pass declares all color, depth, and stencil attachments upfront, along with their load/store operations and layout transitions.


🏛️ Attachment Operations (LoadOp & StoreOp)

Operation Value Meaning Performance Tip
loadOp CLEAR Clears framebuffer to clear color at start Use for background / full scene clears
loadOp DONT_CARE Existing content is undefined Fastest for depth buffers overwritten by skybox/geometry
storeOp STORE Writes rendered image to VRAM for presentation Use for color buffers shown on screen
storeOp DONT_CARE Discards buffer after pass ends Saves bandwidth for transient MSAA or depth buffers