Share via


Compare Enumeration (Microsoft.DirectX.Direct3D)

Defines the supported compare functions in the RenderStateManager class type.

Definition

Visual Basic Public Enum Compare
C# public enum Compare
C++ public enum class Compare
JScript 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.900.0,  Culture=neutral,  PublicKeyToken=d3231b57b74a1492

See Also