# Sandbox.Rendering.CommandList.SetRenderTarget

## Overload 1

```csharp
void SetRenderTarget(RenderTargetHandle handle)
```

Set the current render target. Setting this will bind the render target and change the viewport to match it.

### Parameters

- `handle` (`RenderTargetHandle`)

## Overload 2

```csharp
void SetRenderTarget(RenderTarget target)
```

Set the current render target. Setting this will bind the render target and change the viewport to match it.

### Parameters

- `target` (`RenderTarget`)

Declared in [Sandbox.Rendering.CommandList](/api/Sandbox.Rendering.CommandList).
Assembly: `Sandbox.Engine`.
