# SubPassDescriptor

> Structure discribing a single native subpass.

## Definition

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

```csharp
public struct SubPassDescriptor
```

## Fields

| Value                                                                                                   | Description                                                                                                                                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [colorOutputs](/engine/6000.0/script-reference/unityengine/rendering/subpassdescriptor/coloroutputs.md) | Array of attachment indices to be used as the color render targets in this sub pass. These are specificed as indices into the attachment array passed to [CommandBuffer.BeginRenderPass](/engine/6000.0/script-reference/unityengine/rendering/commandbuffer/beginrenderpass.md). |
| [flags](/engine/6000.0/script-reference/unityengine/rendering/subpassdescriptor/flags.md)               | Flags controlling specific reading behaviour of depth and stencil attachments.                                                                                                                                                                                                    |
| [inputs](/engine/6000.0/script-reference/unityengine/rendering/subpassdescriptor/inputs.md)             | Array of attachment indices to be used as input attachments in this sub pass. These are specificed as indices into the attachment array passed to [CommandBuffer.BeginRenderPass](/engine/6000.0/script-reference/unityengine/rendering/commandbuffer/beginrenderpass.md).        |
