Share via


Enumerazione D3DSTENCILOP

Definisce le operazioni stencil-buffer.

Sintassi

typedef enum D3DSTENCILOP { 
  D3DSTENCILOP_KEEP         = 1,
  D3DSTENCILOP_ZERO         = 2,
  D3DSTENCILOP_REPLACE      = 3,
  D3DSTENCILOP_INCRSAT      = 4,
  D3DSTENCILOP_DECRSAT      = 5,
  D3DSTENCILOP_INVERT       = 6,
  D3DSTENCILOP_INCR         = 7,
  D3DSTENCILOP_DECR         = 8,
  D3DSTENCILOP_FORCE_DWORD  = 0x7fffffff
} D3DSTENCILOP, *LPD3DSTENCILOP;

Costanti

D3DSTENCILOP_KEEP

Non aggiornare la voce nel buffer degli stencil. Si tratta del valore predefinito.

D3DSTENCILOP_ZERO

Impostare la voce stencil-buffer su 0.

D3DSTENCILOP_REPLACE

Sostituire la voce stencil-buffer con un valore di riferimento.

D3DSTENCILOP_INCRSAT

Incrementare la voce stencil-buffer, bloccando il valore massimo.

D3DSTENCILOP_DECRSAT

Decrementare la voce stencil-buffer, bloccando su zero.

D3DSTENCILOP_INVERT

Invertire i bit nella voce stencil-buffer.

D3DSTENCILOP_INCR

Incrementare la voce stencil-buffer, con wrapping a zero se il nuovo valore supera il valore massimo.

D3DSTENCILOP_DECR

Decrementare la voce stencil-buffer, il wrapping al valore massimo se il nuovo valore è minore di zero.

D3DSTENCILOP_FORCE_DWORD

Forza la compilazione in 32 bit di questa enumerazione. Senza questo valore, alcuni compilatori consentono la compilazione di questa enumerazione in dimensioni diverse da 32 bit. Questo valore non viene utilizzato.

Commenti

Le voci stencil-buffer sono valori interi compresi tra 0 e 2ⁿ - 1, dove n è la profondità di bit del buffer degli stencil.

Requisiti

Requisito Valore
Intestazione
D3D9Types.h

Vedi anche

Enumerazioni Direct3D