enumerazione D3D12DDI_STENCIL_OP (d3d12umddi.h)

Il tipo di enumerazione D3D12DDI_STENCIL_OP contiene valori che identificano le operazioni sui buffer stencil in una chiamata alla funzione CreateDepthStencilState del driver.

Sintassi

typedef enum D3D12DDI_STENCIL_OP {
  D3D12DDI_STENCIL_OP_KEEP,
  D3D12DDI_STENCIL_OP_ZERO,
  D3D12DDI_STENCIL_OP_REPLACE,
  D3D12DDI_STENCIL_OP_INCR_SAT,
  D3D12DDI_STENCIL_OP_DECR_SAT,
  D3D12DDI_STENCIL_OP_INVERT,
  D3D12DDI_STENCIL_OP_INCR,
  D3D12DDI_STENCIL_OP_DECR
} ;

Costanti

 
D3D12DDI_STENCIL_OP_KEEP
Non aggiornare la voce nel buffer stencil. D3D12DDI_STENCIL_OP_KEEP è il valore predefinito.
D3D12DDI_STENCIL_OP_ZERO
Impostare la voce stencil-buffer su 0.
D3D12DDI_STENCIL_OP_REPLACE
Sostituire la voce stencil-buffer con un valore di riferimento.
D3D12DDI_STENCIL_OP_INCR_SAT
Incrementare la voce stencil-buffer, bloccando il valore massimo.
D3D12DDI_STENCIL_OP_DECR_SAT
Decrementare la voce del buffer stencil, bloccando fino a zero.
D3D12DDI_STENCIL_OP_INVERT
Inverte i bit nella voce stencil-buffer.
D3D12DDI_STENCIL_OP_INCR
Incrementare la voce del buffer stencil, eseguire il wrapping su zero se il nuovo valore supera il valore massimo.
D3D12DDI_STENCIL_OP_DECR
Decrementare la voce del buffer stencil, che viene eseguito il wrapping al valore massimo se il nuovo valore è minore di zero.

Requisiti

Requisito Valore
Client minimo supportato Windows 10, versione 1809
Intestazione d3d12umddi.h