Share via


D3D12_STENCIL_OP列舉 (d3d12.h)

識別可在深度樣板測試期間執行的樣板作業。

Syntax

typedef enum D3D12_STENCIL_OP {
  D3D12_STENCIL_OP_KEEP = 1,
  D3D12_STENCIL_OP_ZERO = 2,
  D3D12_STENCIL_OP_REPLACE = 3,
  D3D12_STENCIL_OP_INCR_SAT = 4,
  D3D12_STENCIL_OP_DECR_SAT = 5,
  D3D12_STENCIL_OP_INVERT = 6,
  D3D12_STENCIL_OP_INCR = 7,
  D3D12_STENCIL_OP_DECR = 8
} ;

常數

 
D3D12_STENCIL_OP_KEEP
值: 1
保留現有的樣板資料。
D3D12_STENCIL_OP_ZERO
值: 2
將樣板資料設定為 0。
D3D12_STENCIL_OP_REPLACE
值: 3
呼叫 ID3D12GraphicsCommandList::OMSetStencilRef,將樣板資料設定為參考值。
D3D12_STENCIL_OP_INCR_SAT
值: 4
將樣板值遞增 1,並限制結果。
D3D12_STENCIL_OP_DECR_SAT
值: 5
將樣板值遞減 1,並限制結果。
D3D12_STENCIL_OP_INVERT
值: 6
反轉樣板資料。
D3D12_STENCIL_OP_INCR
值: 7
將樣板值遞增 1,並視需要包裝結果。
D3D12_STENCIL_OP_DECR
值: 8
將樣板值遞減 1,並視需要包裝結果。

備註

此列舉是由 D3D12_DEPTH_STENCILOP_DESC 結構使用。

需求

   
標頭 d3d12.h

另請參閱

CD3DX12_DEPTH_STENCIL_DESC

核心列舉