D3DCMPFUNC

The D3DCMPFUNC enumerated type defines the supported compare functions for the D3DRENDERSTATE_ZFUNC and D3DRENDERSTATE_ALPHAFUNC values of the D3DRENDERSTATETYPE enumerated type.

typedef enum _D3DCMPFUNC { 
    D3DCMP_NEVER        = 1, 
    D3DCMP_LESS         = 2, 
    D3DCMP_EQUAL        = 3, 
    D3DCMP_LESSEQUAL    = 4, 
    D3DCMP_GREATER      = 5, 
    D3DCMP_NOTEQUAL     = 6, 
    D3DCMP_GREATEREQUAL = 7, 
    D3DCMP_ALWAYS       = 8, 
    D3DCMP_FORCE_DWORD   = 0x7fffffff, 
} D3DCMPFUNC; 
 

Members

D3DCMP_NEVER
Always fail the test.
D3DCMP_LESS
Accept the new pixel if its value is less than the value of the current pixel.
D3DCMP_EQUAL
Accept the new pixel if its value equals the value of the current pixel.
D3DCMP_LESSEQUAL
Accept the new pixel if its value is less than or equal to the value of the current pixel.
D3DCMP_GREATER
Accept the new pixel if its value is greater than the value of the current pixel.
D3DCMP_NOTEQUAL
Accept the new pixel if its value does not equal the value of the current pixel.
D3DCMP_GREATEREQUAL
Accept the new pixel if its value is greater than or equal to the value of the current pixel.
D3DCMP_ALWAYS
Always pass the test.
D3DCMP_FORCE_DWORD
Forces this enumerated type to be 32 bits in size.

QuickInfo

  Windows NT: Use version 4.0 or later.
  Windows: Use Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Header: Declared in d3dtypes.h.