CompareFunction Enumeration
Microsoft Silverlight will reach end of support after October 2021. Learn more.
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)
Syntax
'Declaration
Public Enumeration CompareFunction
public enum CompareFunction
Members
Member name | Description | |
---|---|---|
Always | Always pass the test. | |
Never | Always fail the test. | |
Less | Accept the new pixel if its value is less than the value of the current pixel. | |
LessEqual | Accept the new pixel if its value is less than or equal to the value of the current pixel. | |
Equal | Accept the new pixel if its value is equal to the value of the current pixel. | |
GreaterEqual | Accept the new pixel if its value is greater than or equal to the value of the current pixel. | |
Greater | Accept the new pixel if its value is greater than the value of the current pixel. | |
NotEqual | Accept the new pixel if its value does not equal the value of the current pixel. |
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.