Share via


D3DMCMPFUNC (Windows CE 5.0)

Send Feedback

This enumeration provides values that identify comparison functions for various render states. For more information, see D3DMRENDERSTATETYPE.

typedef enum _D3DMCMPFUNC {  D3DMCMP_NEVER        = 1,  D3DMCMP_LESS         = 2,  D3DMCMP_EQUAL        = 3,  D3DMCMP_LESSEQUAL    = 4,  D3DMCMP_GREATER      = 5,  D3DMCMP_NOTEQUAL     = 6,  D3DMCMP_GREATEREQUAL = 7,  D3DMCMP_ALWAYS       = 8,  D3DMCMP_FORCE_ULONG  = 0x7fffffff,} D3DMCMPFUNC;

Elements

  • D3DMCMP_NEVER
    The comparison is always FALSE.
  • D3DMCMP_LESS
    The comparison is TRUE if the input value is less than the reference value.
  • D3DMCMP_EQUAL
    The comparison is TRUE if the input value and reference value are equal.
  • D3DMCMP_LESSEQUAL
    The comparison is TRUE if the input value is less than or equal to the reference value.
  • D3DMCMP_GREATER
    The comparison is TRUE if the input value is greater than the reference value.
  • D3DMCMP_NOTEQUAL
    The comparison is TRUE if the input value is not equal to the reference value.
  • D3DMCMP_GREATEREQUAL
    The comparison is TRUE if the input value is greater than or equal to the reference value.
  • D3DMCMP_ALWAYS
    The comparison is always TRUE.
  • D3DMCMP_FORCE_ULONG
    Forces the compiler to interpret the enumeration as a ULONG value. This value is not used directly in Direct3D Mobile programming.

Remarks

Values from this enumeration are used in the D3DMRS_ZFUNC render state.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: D3dmtypes.h.

See Also

Direct3D Mobile Enumerations | D3DMRENDERSTATETYPE | Depth Buffering

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.