---
name: "SDL_GPUTextureCreateInfo"
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_GPUTextureCreateInfo"
---

# SDL\_GPUTextureCreateInfo(3type)

A structure specifying the parameters of a texture.

## NAME

SDL\_GPUTextureCreateInfo - A structure specifying the parameters of a texture.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

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

**typedef struct SDL\_GPUTextureCreateInfo** **{**     **SDL\_GPUTextureType type;          /\*\*\< The base dimensionality of the texture. \*/**     **SDL\_GPUTextureFormat format;      /\*\*\< The pixel format of the texture. \*/**     **SDL\_GPUTextureUsageFlags usage;   /\*\*\< How the texture is intended to be used by the client. \*/**     **Uint32 width;                     /\*\*\< The width of the texture. \*/**     **Uint32 height;                    /\*\*\< The height of the texture. \*/**     **Uint32 layer\_count\_or\_depth;      /\*\*\< The layer count or depth of the texture. This value is treated as a layer count on 2D array textures, and as a depth value on 3D textures. \*/**     **Uint32 num\_levels;                /\*\*\< The number of mip levels in the texture. \*/**     **SDL\_GPUSampleCount sample\_count;  /\*\*\< The number of samples per texel. Only applies if the texture is used as a render target. \*/**     **SDL\_PropertiesID props;           /\*\*\< A properties ID for extensions. Should be 0 if no extensions are needed. \*/** **} SDL\_GPUTextureCreateInfo;**

## DESCRIPTION

Usage flags can be bitwise OR'd together for combinations of usages. Note that certain usage combinations are invalid, for example SAMPLER and GRAPHICS\_STORAGE.

## AVAILABILITY

This struct is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_CreateGPUTexture**(3)](/SDL_CreateGPUTexture/3.md), **•**(3), [**SDL\_GPUTextureType**(3type)](/SDL_GPUTextureType/3type.md), **•**(3), [**SDL\_GPUTextureFormat**(3type)](/SDL_GPUTextureFormat/3type.md), **•**(3), [**SDL\_GPUTextureUsageFlags**(3type)](/SDL_GPUTextureUsageFlags/3type.md), **•**(3), [**SDL\_GPUSampleCount**(3type)](/SDL_GPUSampleCount/3type.md)
