Enum CompareFunction
The comparison function used for depth, stencil, and alpha tests.
public enum CompareFunction
Fields
Always = 0Always passes the test.
Equal = 4Passes the test when the new pixel value is equal to current pixel value.
Greater = 6Passes the test when the new pixel value is greater than current pixel value.
GreaterEqual = 5Passes the test when the new pixel value is greater than or equal to current pixel value.
Less = 2Passes the test when the new pixel value is less than current pixel value.
LessEqual = 3Passes the test when the new pixel value is less than or equal to current pixel value.
Never = 1Never passes the test.
NotEqual = 7Passes the test when the new pixel value does not equal to current pixel value.