Structures
VkClearDepthStencilValue
Structure specifying a clear depth stencil value
The VkClearDepthStencilValue
structure is defined as:
typedef struct VkClearDepthStencilValue {
float depth;
uint32_t stencil;
} VkClearDepthStencilValue;
depth
is the clear value for the depth aspect of the depth/stencil attachment. It is a floating-point value which is automatically converted to the attachment’s format.stencil
is the clear value for the stencil aspect of the depth/stencil attachment. It is a 32-bit integer value which is converted to the attachment’s format by taking the appropriate number of LSBs.
Valid Usage
VUID-VkClearDepthStencilValue-depth-00022
Unless the VK_EXT_depth_range_unrestricted extension is enabled
depth
must be between 0.0
and 1.0
, inclusive