C Specification
The VkStencilOpState structure is defined as:
// Provided by VK_VERSION_1_0
typedef struct VkStencilOpState {
    VkStencilOp    failOp;
    VkStencilOp    passOp;
    VkStencilOp    depthFailOp;
    VkCompareOp    compareOp;
    uint32_t       compareMask;
    uint32_t       writeMask;
    uint32_t       reference;
} VkStencilOpState;Members
- 
failOpis a VkStencilOp value specifying the action performed on samples that fail the stencil test.
- 
passOpis a VkStencilOp value specifying the action performed on samples that pass both the depth and stencil tests.
- 
depthFailOpis a VkStencilOp value specifying the action performed on samples that pass the stencil test and fail the depth test.
- 
compareOpis a VkCompareOp value specifying the comparison operator used in the stencil test.
- 
compareMaskselects the bits of the unsigned integer stencil values participating in the stencil test.
- 
writeMaskselects the bits of the unsigned integer stencil values updated by the stencil test in the stencil framebuffer attachment.
- 
referenceis an integer stencil reference value that is used in the unsigned stencil comparison.
Document Notes
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.