Microsoft DirectX 9.0 SDK Update (October 2004)

Compare Enumeration

Language:

Note: This documentation is preliminary and is subject to change.

Defines the supported compare functions in the RenderStateManager class type.

Definition

Visual Basic .NET Public Enum Compare
C# public enum Compare
Managed C++ __value public enum Compare
JScript .NET public enum Compare

Members

Member Value Description
Always 8 Always pass the test.
Never 1 Always fail the test.
GreaterEqual 7 Accept the new pixel if its value is greater than or equal to the value of the current pixel.
NotEqual 6 Accept the new pixel if its value does not equal the value of the current pixel.
Greater 5 Accept the new pixel if its value is greater than the value of the current pixel.
LessEqual 4 Accept the new pixel if its value is less than or equal to the value of the current pixel.
Equal 3 Accept the new pixel if its value is equal to the value of the current pixel.
Less 2 Accept the new pixel if its value is less than the value of the current pixel.

Remarks

The StencilFunction, AlphaFunction, CounterClockwiseStencilFunction, and ZBufferFunction properties use this enumeration.

Enumeration Information

Namespace Microsoft.DirectX.Direct3D
Assembly Microsoft.DirectX.Direct3D (microsoft.directx.direct3d.dll)
Strong Name Microsoft.DirectX.Direct3D,  Version=1.0.2902.0,  Culture=neutral,  PublicKeyToken=31bf3856ad364e35

See Also


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center