3 using System.Runtime.InteropServices;
5 using SiliconStudio.Core;
7 namespace SiliconStudio.
Paradox.Graphics
13 [StructLayout(LayoutKind.Sequential)]
22 DepthBufferEnable = depthEnable;
23 DepthBufferWriteEnable = depthWriteEnable;
71 DepthBufferEnable =
true;
72 DepthBufferWriteEnable =
true;
73 DepthBufferFunction = CompareFunction.LessEqual;
74 StencilEnable =
false;
76 FrontFace.StencilFunction = CompareFunction.Always;
77 FrontFace.StencilPass = StencilOperation.Keep;
78 FrontFace.StencilFail = StencilOperation.Keep;
79 FrontFace.StencilDepthBufferFail = StencilOperation.Keep;
81 BackFace.StencilFunction = CompareFunction.Always;
82 BackFace.StencilPass = StencilOperation.Keep;
83 BackFace.StencilFail = StencilOperation.Keep;
84 BackFace.StencilDepthBufferFail = StencilOperation.Keep;
86 StencilMask = byte.MaxValue;
87 StencilWriteMask = byte.MaxValue;
byte StencilWriteMask
Gets or sets the write mask applied to values written into the stencil buffer. The default mask is by...
DepthStencilStencilOpDescription BackFace
Identify how to use the results of the depth test and the stencil test for pixels whose surface norma...
bool DepthBufferEnable
Enables or disables depth buffering. The default is true.
DepthStencilStencilOpDescription FrontFace
Identify how to use the results of the depth test and the stencil test for pixels whose surface norma...
Use the default mode depending on the type of the field/property.
byte StencilMask
Gets or sets the mask applied to the reference value and each stencil buffer entry to determine the s...
bool StencilEnable
Gets or sets stencil enabling. The default is false.
CompareFunction
Comparison options.
bool DepthBufferWriteEnable
Enables or disables writing to the depth buffer. The default is true.
CompareFunction DepthBufferFunction
Gets or sets the comparison function for the depth-buffer test. The default is CompareFunction.LessEqual
DepthStencilStateDescription Clone()
Describes a depth stencil state.
DepthStencilStateDescription SetDefault()
Sets default values for this instance.
DepthStencilStateDescription(bool depthEnable, bool depthWriteEnable)
Initializes a new instance of the DepthStencilStateDescription class.