depthStencil
DepthStencil, in computer graphics, refers to a depth-stencil buffer used by the rendering pipeline to control visibility and masking of fragments. The depth component stores, per pixel, the distance from the viewer to the closest surface (z-value) to enable depth testing. The stencil component holds a per-pixel value used to mask rendering operations and drive multi-pass effects, such as mirrors, shadows, outlines, and complex clipping.
Depth-stencil buffers are created as a resource with a depth-stencil format. Common formats include dense depth
During rendering, the pipeline can perform a depth test using a comparison function (for example, less-than
Depth-stencil resources are bound as depth-stencil targets and may be cleared at the start of a pass.