深度樣板檢視 (DSV)Depth stencil view (DSV)

深度樣板檢視提供保留深度和樣板資訊的格式及緩衝區。A depth stencil view provides the format and buffer for holding depth and stencil information. 深度緩衝區用於揀選 (cull) 檢視器看不到的像素繪圖,因為它們被更近的物件阻擋在檢視之外。The depth buffer is used to cull the drawing of pixels that would be invisible to the viewer as they are occluded from view by a closer object. 樣板緩衝區可用於揀選所定義形狀之外的所有繪圖。The stencil buffer can be used to cull all drawing outside of a defined shape.

樣板緩衝區有一些更進階的用途,不只是定義轉譯區域。There are a number of more advanced uses of stencil buffers beyond defining a rendering area. 樣板緩衝區值可操作來提供這類效果,如淡化、剪影、印花、溶解、外框、陰影錐等。Stencil buffer values can be manipulated to give such effects as fades, silhouettes, decaling, dissolves, outlining, shadow volumes, and so on.

相關主題Related topics

檢視Views