# ReadOnlyDepth

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

## Definition

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

```csharp
ReadOnlyDepth = 2
```
