# Sandbox.Rendering.CommandList.AttributeAccess.GrabFrameTexture

## Overload 1

```csharp
RenderTargetHandle GrabFrameTexture(string token = FrameTexture, bool withMips = False)
```

Takes a copy of the current viewport's color texture and stores it in targetName on renderAttributes.

### Parameters

- `token` (`string`), default `FrameTexture`
- `withMips` (`bool`), default `False`

### Returns

`RenderTargetHandle`

## Overload 2

```csharp
RenderTargetHandle GrabFrameTexture(string token, DownsampleMethod downsampleMethod, int maxMips = 0)
```

Takes a copy of the current viewport's color texture and stores it in targetName on renderAttributes.

### Parameters

- `token` (`string`)
- `downsampleMethod` (`DownsampleMethod`)
- `maxMips` (`int`), default `0`

### Returns

`RenderTargetHandle`

Declared in [Sandbox.Rendering.CommandList.AttributeAccess](/api/Sandbox.Rendering.CommandList.AttributeAccess).
Assembly: `Sandbox.Engine`.
