CompareFunctionΒΆ

enum CompareFunction : System.Enum, System.IComparable, System.IFormattable, System.IConvertible

The comparison function used for depth, stencil, and alpha tests.

CompareFunction Always

Always passes the test.

CompareFunction Never

Never passes the test.

CompareFunction Less

Passes the test when the new pixel value is less than current pixel value.

CompareFunction LessEqual

Passes the test when the new pixel value is less than or equal to current pixel value.

CompareFunction Equal

Passes the test when the new pixel value is equal to current pixel value.

CompareFunction GreaterEqual

Passes the test when the new pixel value is greater than or equal to current pixel value.

CompareFunction Greater

Passes the test when the new pixel value is greater than current pixel value.

CompareFunction NotEqual

Passes the test when the new pixel value does not equal to current pixel value.