Enum CompareFunction

CompareFunction enumeration

The compare function used in depth/stencil testing.

public enum CompareFunction

Values

NameValueDescription
Never0Never passes
Less1Pass if the incoming value is less than the stored value.
Equal2Pass if the incoming value is equal to the stored value.
LEqual3Pass if the incoming value is less than or equal to the stored value.
Greater4Pass if the incoming value is greater than the stored value.
NotEqual5Pass if the incoming value is not equal to the stored value.
GEqual6Pass if the incoming value is greater than or equal to the stored value.
Always7Always passes

See Also