Pipeline state controlling the depth bounds tests,
stencil test, and depth test is
specified through the members of the
VkPipelineDepthStencilStateCreateInfo
structure.
The VkPipelineDepthStencilStateCreateInfo
structure is defined as:
typedef struct VkPipelineDepthStencilStateCreateInfo { VkStructureType sType; const void* pNext; VkPipelineDepthStencilStateCreateFlags flags; VkBool32 depthTestEnable; VkBool32 depthWriteEnable; VkCompareOp depthCompareOp; VkBool32 depthBoundsTestEnable; VkBool32 stencilTestEnable; VkStencilOpState front; VkStencilOpState back; float minDepthBounds; float maxDepthBounds; } VkPipelineDepthStencilStateCreateInfo;
sType
is the type of this structure.
pNext
is NULL
or a pointer to an extension-specific structure.
flags
is reserved for future use.
depthTestEnable
controls whether depth testing
is enabled.
depthWriteEnable
controls whether depth writes are enabled.
depthCompareOp
is the comparison operator used in the
depth test.
depthBoundsTestEnable
controls whether depth bounds testing is enabled.
stencilTestEnable
controls whether stencil testing is enabled.
front
and back
control the parameters of the
stencil test.
minDepthBounds
and maxDepthBounds
define the range of values
used in the depth bounds test.