Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The following tables list the members exposed by the DepthStencilState type.
Public Constructors
Name | Description | |
---|---|---|
![]() |
DepthStencilState | Creates an instance of DepthStencilState with default values. |
Public Fields
Name | Description | |
---|---|---|
![]() ![]() |
Default | A built-in state object with default settings for using a depth stencil buffer. |
![]() ![]() |
DepthRead | A built-in state object with settings for enabling a read-only depth stencil buffer. |
![]() ![]() |
None | A built-in state object with settings for not using a depth stencil buffer. |
Public Properties
Name | Description | |
---|---|---|
![]() |
CounterClockwiseStencilDepthBufferFail | Gets or sets the stencil operation to perform if the stencil test passes and the depth-buffer test fails for a counterclockwise triangle. The default is StencilOperation.Keep. |
![]() |
CounterClockwiseStencilFail | Gets or sets the stencil operation to perform if the stencil test fails for a counterclockwise triangle. The default is StencilOperation.Keep. |
![]() |
CounterClockwiseStencilFunction | Gets or sets the comparison function to use for counterclockwise stencil tests. The default is CompareFunction.Always. |
![]() |
CounterClockwiseStencilPass | Gets or sets the stencil operation to perform if the stencil and depth-tests pass for a counterclockwise triangle. The default is StencilOperation.Keep. |
![]() |
DepthBufferEnable | Enables or disables depth buffering. The default is true. |
![]() |
DepthBufferFunction | Gets or sets the comparison function for the depth-buffer test. The default is CompareFunction.LessEqual |
![]() |
DepthBufferWriteEnable | Enables or disables writing to the depth buffer. The default is true. |
![]() |
GraphicsDevice | (Inherited from GraphicsResource.) |
![]() |
IsDisposed | (Inherited from GraphicsResource.) |
![]() |
Name | (Inherited from GraphicsResource.) |
![]() |
ReferenceStencil | Specifies a reference value to use for the stencil test. The default is 0. |
![]() |
StencilDepthBufferFail | Gets or sets the stencil operation to perform if the stencil test passes and the depth-test fails. The default is StencilOperation.Keep. |
![]() |
StencilEnable | Gets or sets stencil enabling. The default is false. |
![]() |
StencilFail | Gets or sets the stencil operation to perform if the stencil test fails. The default is StencilOperation.Keep. |
![]() |
StencilFunction | Gets or sets the comparison function for the stencil test. The default is CompareFunction.Always. |
![]() |
StencilMask | Gets or sets the mask applied to the reference value and each stencil buffer entry to determine the significant bits for the stencil test. The default mask is Int32.MaxValue. |
![]() |
StencilPass | Gets or sets the stencil operation to perform if the stencil test passes. The default is StencilOperation.Keep. |
![]() |
StencilWriteMask | Gets or sets the write mask applied to values written into the stencil buffer. The default mask is Int32.MaxValue. |
![]() |
Tag | (Inherited from GraphicsResource.) |
![]() |
TwoSidedStencilMode | Enables or disables two-sided stenciling. The default is false. |
Public Methods
Name | Description | |
---|---|---|
![]() |
Dispose | Overloaded. Immediately releases the unmanaged resources used by this object. |
![]() |
Equals | (Inherited from Object.) |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
ToString | (Inherited from GraphicsResource.) |
Protected Methods
Name | Description | |
---|---|---|
![]() |
Finalize | (Inherited from GraphicsResource.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
Public Events
Name | Description | |
---|---|---|
![]() |
Disposing | (Inherited from GraphicsResource.) |
See Also
Reference
DepthStencilState Class
Microsoft.Xna.Framework.Graphics Namespace