Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
CompareFunction.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using SiliconStudio.Core;
4 
5 namespace SiliconStudio.Paradox.Graphics
6 {
7  /// <summary>
8  /// Comparison options.
9  /// </summary>
10  /// <remarks>
11  /// A comparison option determines whether how the runtime compares source (new) data against destination (existing) data before storing the new data.
12  /// The comparison option is declared in a description before an object is created.
13  /// The API allows you to set a comparison option for a depth-stencil buffer (see <see cref="IDepthStencilState"/>), depth-stencil operations, or sampler state (see <see cref="SamplerState"/>).
14  /// </remarks>
15  [DataContract]
16  public enum CompareFunction
17  {
18  /// <summary>
19  /// Never pass the comparison.
20  /// </summary>
21  Never = 1,
22 
23  /// <summary>
24  /// If the source data is less than the destination data, the comparison passes.
25  /// </summary>
26  Less = 2,
27 
28  /// <summary>
29  /// If the source data is equal to the destination data, the comparison passes.
30  /// </summary>
31  Equal = 3,
32 
33  /// <summary>
34  /// If the source data is less than or equal to the destination data, the comparison passes.
35  /// </summary>
36  LessEqual = 4,
37 
38  /// <summary>
39  /// If the source data is greater than the destination data, the comparison passes.
40  /// </summary>
41  Greater = 5,
42 
43  /// <summary>
44  /// If the source data is not equal to the destination data, the comparison passes.
45  /// </summary>
46  NotEqual = 6,
47 
48  /// <summary>
49  /// If the source data is greater than or equal to the destination data, the comparison passes.
50  /// </summary>
51  GreaterEqual = 7,
52 
53  /// <summary>
54  /// Always pass the comparison.
55  /// </summary>
56  Always = 8,
57  }
58 }
The property / field will not be stored.
CompareFunction
Comparison options.