To clear one or more subranges of a depth/stencil image, call:
// Provided by VK_VERSION_1_0 void vkCmdClearDepthStencilImage( VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearDepthStencilValue* pDepthStencil, uint32_t rangeCount, const VkImageSubresourceRange* pRanges);
commandBufferis the command buffer into which the command will be recorded.
imageis the image to be cleared.
imageLayoutspecifies the current layout of the image subresource ranges to be cleared, and must be
pDepthStencilis a pointer to a VkClearDepthStencilValue structure containing the values that the depth and stencil image subresource ranges will be cleared to (see https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#clears-values below).
rangeCountis the number of image subresource range structures in
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.