Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
DepthStencilStencilOpDescription.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 System.Runtime.InteropServices;
4 
5 using SiliconStudio.Core;
6 
7 namespace SiliconStudio.Paradox.Graphics
8 {
9  [DataContract]
10  [StructLayout(LayoutKind.Sequential)]
12  {
13  /// <summary>
14  /// Gets or sets the stencil operation to perform if the stencil test fails. The default is StencilOperation.Keep.
15  /// </summary>
16  public StencilOperation StencilFail { get; set; }
17 
18  /// <summary>
19  /// Gets or sets the stencil operation to perform if the stencil test passes and the depth-test fails. The default is StencilOperation.Keep.
20  /// </summary>
21  public StencilOperation StencilDepthBufferFail { get; set; }
22 
23  /// <summary>
24  /// Gets or sets the stencil operation to perform if the stencil test passes. The default is StencilOperation.Keep.
25  /// </summary>
26  public StencilOperation StencilPass { get; set; }
27 
28  /// <summary>
29  /// Gets or sets the comparison function for the stencil test. The default is CompareFunction.Always.
30  /// </summary>
31  public CompareFunction StencilFunction { get; set; }
32  }
33 }
CompareFunction
Comparison options.