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

# SDL\_GPUTextureType(3type)

Specifies the type of a texture.

## NAME

SDL\_GPUTextureType - Specifies the type of a texture.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

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

**typedef enum SDL\_GPUTextureType** **{**     **SDL\_GPU\_TEXTURETYPE\_2D,         /\*\*\< The texture is a 2-dimensional image. \*/**     **SDL\_GPU\_TEXTURETYPE\_2D\_ARRAY,   /\*\*\< The texture is a 2-dimensional array image. \*/**     **SDL\_GPU\_TEXTURETYPE\_3D,         /\*\*\< The texture is a 3-dimensional image. \*/**     **SDL\_GPU\_TEXTURETYPE\_CUBE,       /\*\*\< The texture is a cube image. \*/**     **SDL\_GPU\_TEXTURETYPE\_CUBE\_ARRAY  /\*\*\< The texture is a cube array image. \*/** **} SDL\_GPUTextureType;**

## AVAILABILITY

This enum is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_CreateGPUTexture**(3)](/SDL_CreateGPUTexture/3.md)
