Class DepthStencilStates
Defines a set of built-in DepthStencilStateDescriptions for common Depth and Stencil testing configurations.
public static class DepthStencilStates
- Inheritance
-
objectDepthStencilStates
Fields
Default
A built-in Depth-Stencil State object with default settings.
public static readonly DepthStencilStateDescription Default
Field Value
Remarks
The default values are:
- Enables depth testing and depth writing.
- Uses the depth comparison function LessEqual.
- Disables stencil testing.
- Sets the stencil bitmasks to MaxValue (all birs set to 1).
- The stencil operations and comparison functions for both front-facing and back-facing pixels are set to Always (they always succeed) and Keep (the value in the stencil buffer is not modified).
DefaultInverse
A built-in Depth-Stencil State object with default settings using GreaterEqual function when comparing depth values.
public static readonly DepthStencilStateDescription DefaultInverse
Field Value
DepthRead
A built-in Depth-Stencil State object with settings for enabling a read-only Depth-Stencil Buffer.
public static readonly DepthStencilStateDescription DepthRead
Field Value
None
A built-in Depth-Stencil State object with settings for not using a Depth-Stencil Buffer.
public static readonly DepthStencilStateDescription None