Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
DepthStencilState.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.Serialization.Contents;
4 
5 namespace SiliconStudio.Paradox.Graphics
6 {
7  /// <summary>
8  /// Contains depth-stencil state for the device.
9  /// </summary>
10  [ContentSerializer(typeof(DepthStencilStateSerializer))]
11  public partial class DepthStencilState : GraphicsResourceBase
12  {
13  // For FakeDepthStencilState.
14  protected DepthStencilState()
15  {
16  }
17 
18  // For FakeDepthStencilState.
20  {
21  Description = description;
22  }
23 
24  /// <summary>
25  /// Initializes a new instance of the <see cref="IDepthStencilState"/> class.
26  /// </summary>
27  /// <param name="graphicsDevice">The graphics device.</param>
28  /// <param name="description">The description.</param>
29  public static DepthStencilState New(GraphicsDevice graphicsDevice, DepthStencilStateDescription description)
30  {
31  return new DepthStencilState(graphicsDevice, description);
32  }
33 
34  /// <summary>
35  /// Gets the depth stencil state description.
36  /// </summary>
38  }
39 }
Contains depth-stencil state for the device.
readonly DepthStencilStateDescription Description
Gets the depth stencil state description.
Performs primitive-based rendering, creates resources, handles system-level variables, adjusts gamma ramp levels, and creates shaders. See The+GraphicsDevice+class to learn more about the class.
DepthStencilState(DepthStencilStateDescription description)
static DepthStencilState New(GraphicsDevice graphicsDevice, DepthStencilStateDescription description)
Initializes a new instance of the IDepthStencilState class.