Export (0) Print
Expand All
Expand Minimize

CompareFunction Enumeration

Defines comparison functions that can be chosen for alpha, stencil, or depth-buffer tests.

Namespace:  Microsoft.Xna.Framework.Graphics
Assembly:  Microsoft.Xna.Framework.Graphics (in Microsoft.Xna.Framework.Graphics.dll)

public enum CompareFunction

Member nameDescription
AlwaysAlways pass the test.
NeverAlways fail the test.
LessAccept the new pixel if its value is less than the value of the current pixel.
LessEqualAccept the new pixel if its value is less than or equal to the value of the current pixel.
EqualAccept the new pixel if its value is equal to the value of the current pixel.
GreaterEqualAccept the new pixel if its value is greater than or equal to the value of the current pixel.
GreaterAccept the new pixel if its value is greater than the value of the current pixel.
NotEqualAccept the new pixel if its value does not equal the value of the current pixel.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft