Method SetStencilState
SetStencilState(int, CompareFunction, StencilOp, StencilOp, StencilOp)
Sets up the stencil settings for the pass.
선언
public void SetStencilState(int reference, CompareFunction compareFunction, StencilOp passOp, StencilOp failOp, StencilOp zFailOp)
파라미터
| 타입 | 이름 | 설명 |
|---|---|---|
| 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. |