Table of Contents

Enum CompareFunction

Namespace
Microsoft.Xna.Framework.Graphics
Assembly
MonoGame.Framework.dll

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

public enum CompareFunction

Fields

Always = 0

Always passes the test.

Equal = 4

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

Greater = 6

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

GreaterEqual = 5

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

Less = 2

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

LessEqual = 3

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

Never = 1

Never passes the test.

NotEqual = 7

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