Reputation: 1251
It is sometimes necessary to clear part or all of an attachment during a rendering sequence.
Render passes and frame buffers had an array of attachments identified by index. CmdClearAttachments was used to clear a rectangle during rendering. CmdClearColorImage and CmdClearDepthStencilImage also exist, but these are used outside render passes and also don't support rectangle clearing.
What is the equivalent operation with dynamic rendering?
Upvotes: 2
Views: 1358
Reputation: 473577
Dynamic rendering's vkCmdBeginRendering
creates a render pass instance, which has a sequence of attachments. vkCmdClearAttachments
clears attachments of a render pass instance.
Dynamic rendering is not a different kind of rendering; it's just a shortcut to what already exists.
Upvotes: 2