Class StencilStateData
Container class for stencil rendering settings.
Inherited Members
Namespace: UnityEngine.Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
[Serializable]
public class StencilStateData
Fields
failOperation
The stencil operation to use when the stencil test fails.
Declaration
public StencilOp failOperation
Field Value
Type | Description |
---|---|
StencilOp |
overrideStencilState
Used to mark whether the stencil values should be overridden or not.
Declaration
public bool overrideStencilState
Field Value
Type | Description |
---|---|
bool |
passOperation
The stencil operation to use when the stencil test passes.
Declaration
public StencilOp passOperation
Field Value
Type | Description |
---|---|
StencilOp |
stencilCompareFunction
The comparison function to use.
Declaration
public CompareFunction stencilCompareFunction
Field Value
Type | Description |
---|---|
CompareFunction |
stencilReference
The stencil reference value.
Declaration
public int stencilReference
Field Value
Type | Description |
---|---|
int |
zFailOperation
The stencil operation to use when the stencil test fails because of depth.
Declaration
public StencilOp zFailOperation
Field Value
Type | Description |
---|---|
StencilOp |