Method SetStencilState
SetStencilState(int, CompareFunction, StencilOp, StencilOp, StencilOp)
Sets up the stencil settings for the pass.
Declaration
public void SetStencilState(int reference, CompareFunction compareFunction, StencilOp passOp, StencilOp failOp, StencilOp zFailOp)
Parameters
Type | Name | Description |
---|---|---|
int | reference | The stencil reference value. |
CompareFunction | compareFunction | The comparison function to use. |
StencilOp | passOp | The stencil operation to use when the stencil test passes. |
StencilOp | failOp | The stencil operation to use when the stencil test fails. |
StencilOp | zFailOp | The stencil operation to use when the stencil test fails because of depth. |