2016-07-11 01:13:41 +00:00
|
|
|
// Copyright (c) 2014-2016 Khronos Group. This work is licensed under a
|
|
|
|
// Creative Commons Attribution 4.0 International License; see
|
|
|
|
// http://creativecommons.org/licenses/by/4.0/
|
|
|
|
|
2016-02-16 09:53:44 +00:00
|
|
|
vkCmdClearDepthStencilImage(3)
|
|
|
|
==============================
|
|
|
|
|
|
|
|
Name
|
|
|
|
----
|
|
|
|
vkCmdClearDepthStencilImage - Fill regions of a combined depth-stencil image.
|
|
|
|
|
|
|
|
C Specification
|
|
|
|
---------------
|
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
// refBegin vkCmdClearDepthStencilImage Fill regions of a combined depth-stencil image.
|
2016-02-16 09:53:44 +00:00
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
To clear one or more subranges of a depth/stencil image, call:
|
2016-02-16 09:53:44 +00:00
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
include::../protos/vkCmdClearDepthStencilImage.txt[]
|
2016-02-16 09:53:44 +00:00
|
|
|
|
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
Parameters
|
|
|
|
----------
|
2016-02-16 09:53:44 +00:00
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
* pname:commandBuffer is the command buffer into which the command will be
|
|
|
|
recorded.
|
|
|
|
* pname:image is the image to be cleared.
|
|
|
|
* pname:imageLayout specifies the current layout of the image subresource
|
|
|
|
ranges to be cleared, and must: be ename:VK_IMAGE_LAYOUT_GENERAL or
|
|
|
|
ename:VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL.
|
|
|
|
* pname:pDepthStencil is a pointer to a slink:VkClearDepthStencilValue
|
|
|
|
structure that contains the values the depth and stencil image
|
|
|
|
subresource ranges will be cleared to (see <<clears-values>> below).
|
|
|
|
* pname:rangeCount is the number of image subresource range structures in
|
|
|
|
pname:pRanges.
|
|
|
|
* pname:pRanges points to an array of slink:VkImageSubresourceRange
|
|
|
|
structures that describe a range of mipmap levels, array layers, and
|
|
|
|
aspects to be cleared, as described in <<resources-image-views,Image
|
|
|
|
Views>>. The pname:aspectMask of each image subresource range in
|
|
|
|
pname:pRanges can: include ename:VK_IMAGE_ASPECT_DEPTH_BIT if the image
|
|
|
|
format has a depth component, and ename:VK_IMAGE_ASPECT_STENCIL_BIT if
|
|
|
|
the image format has a stencil component. pname:pDepthStencil is a
|
|
|
|
pointer to a sname:VkClearDepthStencilValue structure that contains the
|
|
|
|
values the image subresource ranges will be cleared to (see
|
|
|
|
<<clears-values>> below).
|
2016-02-16 09:53:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
-----------
|
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
include::../validity/protos/vkCmdClearDepthStencilImage.txt[]
|
2016-02-16 09:53:44 +00:00
|
|
|
|
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
See Also
|
|
|
|
--------
|
2016-02-16 09:53:44 +00:00
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
slink:VkClearDepthStencilValue, slink:VkCommandBuffer, slink:VkImage, elink:VkImageLayout, slink:VkImageSubresourceRange
|
2016-02-16 09:53:44 +00:00
|
|
|
|
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
Document Notes
|
|
|
|
--------------
|
2016-02-16 09:53:44 +00:00
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
For more information, see the Vulkan Specification at URL
|
2016-02-16 09:53:44 +00:00
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
https://www.khronos.org/registry/vulkan/specs/1.0/xhtml/vkspec.html#vkCmdClearDepthStencilImage
|
2016-02-16 09:53:44 +00:00
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
This page is extracted from the Vulkan Specification.
|
|
|
|
Fixes and changes should be made to the Specification,not directly.
|
2016-02-16 09:53:44 +00:00
|
|
|
|
|
|
|
include::footer.txt[]
|
2016-07-11 01:13:41 +00:00
|
|
|
|