To clear one or more regions of color and depth/stencil attachments inside a render pass instance, call:
void vkCmdClearAttachments( VkCommandBuffer commandBuffer, uint32_t attachmentCount, const VkClearAttachment* pAttachments, uint32_t rectCount, const VkClearRect* pRects);
commandBufferis the command buffer into which the command will be recorded.
attachmentCountis the number of entries in the
pAttachmentsis a pointer to an array of VkClearAttachment structures defining the attachments to clear and the clear values to use.
rectCountis the number of entries in the
pRectspoints to an array of VkClearRect structures defining regions within each selected attachment to clear.
vkCmdClearAttachments can clear multiple regions of each attachment
used in the current subpass of a render pass instance.
This command must be called only inside a render pass instance, and
implicitly selects the images to clear based on the current framebuffer
attachments and the command parameters.
For more information, see the Vulkan Specification at URL
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.
Copyright (c) 2014-2017 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.