# SubPassFlags

> Flags to indicate specialized native subpass behaviour.

## Definition

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

```csharp
[Flags]
public enum SubPassFlags
```

## Fields

| Value                                                                                                              | Description                                                                                                                                                            |
| ------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [None](/engine/6000.0/script-reference/unityengine/rendering/subpassflags/none.md)                                 | Default flags.                                                                                                                                                         |
| [ReadOnlyDepth](/engine/6000.0/script-reference/unityengine/rendering/subpassflags/readonlydepth.md)               | 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.                              |
| [ReadOnlyDepthStencil](/engine/6000.0/script-reference/unityengine/rendering/subpassflags/readonlydepthstencil.md) | 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.                          |
| [ReadOnlyStencil](/engine/6000.0/script-reference/unityengine/rendering/subpassflags/readonlystencil.md)           | Both depth and stencil attachments are read-only in this sub pass. Some renderers require this in order to be able to use the depth and stencil attachments as inputs. |
