# SetPassOperation(StencilOp)

> What to do with the contents of the buffer if the stencil test (and the depth test) passes.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Rendering](/engine/6000.7/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public void SetPassOperation(StencilOp value)
```

### Parameters

**** (\[StencilOp]\(/engine/6000.7/script-reference/unityengine/rendering/stencilop)): The value to set.

### Remarks

Sets [StencilState.passOperationBack](/engine/6000.7/script-reference/unityengine/rendering/stencilstate/passoperationback.md) and [StencilState.passOperationFront](/engine/6000.7/script-reference/unityengine/rendering/stencilstate/passoperationfront.md).
