# ReadOnlyDepthStencil

> The stencil attachment is read-only in this sub pass. Some renderers require this in order to be able to use the stencil attachment as input.

## Definition

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

```csharp
ReadOnlyDepthStencil = ReadOnlyDepth | ReadOnlyStencil
```
