---
name: "SDL_GenerateMipmapsForGPUTexture"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GenerateMipmapsForGPUTexture"
---

# SDL\_GenerateMipmapsForGPUTexture(3)

Generates mipmaps for the given texture.

## NAME

SDL\_GenerateMipmapsForGPUTexture - Generates mipmaps for the given texture.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**void SDL\_GenerateMipmapsForGPUTexture(**     **SDL\_GPUCommandBuffer \*command\_buffer,**     **SDL\_GPUTexture \*texture);**

## DESCRIPTION

This function must not be called inside of any pass.

## FUNCTION PARAMETERS

- *command\_buffer*

  a command\_buffer.

- *texture*

  a texture with more than 1 mip level.

## AVAILABILITY

This function is available since SDL 3.2.0.
