# ScopedSubPass

> Represents an active sub pass until disposed.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.Rendering](/engine/6000.7/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule
* **Implements:** [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

```csharp
public struct ScopedSubPass : IDisposable
```

## Remarks

Additional Resources: [ScriptableRenderContext.BeginScopedSubPass](/engine/6000.7/script-reference/unityengine/rendering/scriptablerendercontext/beginscopedsubpass.md).

## Methods

| Method                                                                                    | Description                                                                                                                                                                                                                                                       |
| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Dispose](/engine/6000.7/script-reference/unityengine/rendering/scopedsubpass/dispose.md) | Ends the current sub pass in the [ScriptableRenderContext](/engine/6000.7/script-reference/unityengine/rendering/scriptablerendercontext.md) that was used to create the [ScopedSubPass](/engine/6000.7/script-reference/unityengine/rendering/scopedsubpass.md). |
