Export (0) Print
Expand All

DepthStencilState Properties

NameDescription
Public PropertyCounterClockwiseStencilDepthBufferFail 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.
Public PropertyCounterClockwiseStencilFail Gets or sets the stencil operation to perform if the stencil test fails for a counterclockwise triangle. The default is StencilOperation.Keep.
Public PropertyCounterClockwiseStencilFunction Gets or sets the comparison function to use for counterclockwise stencil tests. The default is CompareFunction.Always.
Public PropertyCounterClockwiseStencilPass Gets or sets the stencil operation to perform if the stencil and depth-tests pass for a counterclockwise triangle. The default is StencilOperation.Keep.
Public PropertyDepthBufferEnable Enables or disables depth buffering. The default is true.
Public PropertyDepthBufferFunctionGets or sets the comparison function for the depth-buffer test. The default is CompareFunction.LessEqual
Public PropertyDepthBufferWriteEnable Enables or disables writing to the depth buffer. The default is true.
Public PropertyGraphicsDevice(Inherited from GraphicsResource.)
Public PropertyIsDisposed(Inherited from GraphicsResource.)
Public PropertyName(Inherited from GraphicsResource.)
Public PropertyReferenceStencilSpecifies a reference value to use for the stencil test. The default is 0.
Public PropertyStencilDepthBufferFail Gets or sets the stencil operation to perform if the stencil test passes and the depth-test fails. The default is StencilOperation.Keep.
Public PropertyStencilEnable Gets or sets stencil enabling. The default is false.
Public PropertyStencilFail Gets or sets the stencil operation to perform if the stencil test fails. The default is StencilOperation.Keep.
Public PropertyStencilFunction Gets or sets the comparison function for the stencil test. The default is CompareFunction.Always.
Public PropertyStencilMask 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.
Public PropertyStencilPass Gets or sets the stencil operation to perform if the stencil test passes. The default is StencilOperation.Keep.
Public PropertyStencilWriteMask Gets or sets the write mask applied to values written into the stencil buffer. The default mask is Int32.MaxValue.
Public PropertyTag(Inherited from GraphicsResource.)
Public PropertyTwoSidedStencilMode Enables or disables two-sided stenciling. The default is false.

Community Additions

ADD
Show:
© 2014 Microsoft