DepthStencilState Members

DepthStencilState Members

XNA Game Studio 4.0

The following tables list the members exposed by the DepthStencilState type.

NameDescription
Public MethodDepthStencilStateCreates an instance of DepthStencilState with default values.

NameDescription
Public Field StaticDefaultA built-in state object with default settings for using a depth stencil buffer.
Public Field StaticDepthReadA built-in state object with settings for enabling a read-only depth stencil buffer.
Public Field StaticNoneA built-in state object with settings for not using a depth stencil buffer.

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.

NameDescription
Public MethodDisposeOverloaded. Immediately releases the unmanaged resources used by this object.
Public MethodEquals(Inherited from Object.)
Public MethodGetHashCode(Inherited from Object.)
Public MethodGetType(Inherited from Object.)
Public MethodToString(Inherited from GraphicsResource.)

NameDescription
Protected MethodFinalize(Inherited from GraphicsResource.)
Protected MethodMemberwiseClone(Inherited from Object.)

NameDescription
Public EventDisposing(Inherited from GraphicsResource.)

Community Additions

ADD
Show:
© 2016 Microsoft