# Sandbox.Rendering.CommandList.GenerateMipMaps

## Overload 1

```csharp
void GenerateMipMaps(RenderTargetHandle handle, DownsampleMethod method = 1)
```

Generates a mip-map chain for the specified render target.
This will generate mipmaps for the color texture of the render target.

### Parameters

- `handle` (`RenderTargetHandle`)
- `method` (`DownsampleMethod`), default `1`

## Overload 2

```csharp
void GenerateMipMaps(RenderTarget target, DownsampleMethod method = 1)
```

Generates a mip-map chain for the specified render target.
This will generate mipmaps for the color texture of the render target.

### Parameters

- `target` (`RenderTarget`)
- `method` (`DownsampleMethod`), default `1`

## Overload 3

```csharp
void GenerateMipMaps(Texture texture, DownsampleMethod method = 1)
```

Generates a mip-map chain for the specified texture.
This will generate mipmaps for the color texture of the texture.

### Parameters

- `texture` (`Texture`)
- `method` (`DownsampleMethod`), default `1`

Declared in [Sandbox.Rendering.CommandList](/api/Sandbox.Rendering.CommandList).
Assembly: `Sandbox.Engine`.
