---
name: "SDL_GPUTextureRegion"
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_GPUTextureRegion"
---

# SDL\_GPUTextureRegion(3type)

A structure specifying a region of a texture.

## NAME

SDL\_GPUTextureRegion - A structure specifying a region of a texture.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

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

**typedef struct SDL\_GPUTextureRegion** **{**     **SDL\_GPUTexture \*texture;  /\*\*\< The texture used in the copy operation. \*/**     **Uint32 mip\_level;         /\*\*\< The mip level index to transfer. \*/**     **Uint32 layer;             /\*\*\< The layer index to transfer. \*/**     **Uint32 x;                 /\*\*\< The left offset of the region. \*/**     **Uint32 y;                 /\*\*\< The top offset of the region. \*/**     **Uint32 z;                 /\*\*\< The front offset of the region. \*/**     **Uint32 w;                 /\*\*\< The width of the region. \*/**     **Uint32 h;                 /\*\*\< The height of the region. \*/**     **Uint32 d;                 /\*\*\< The depth of the region. \*/** **} SDL\_GPUTextureRegion;**

## DESCRIPTION

Used when transferring data to or from a texture.

## AVAILABILITY

This struct is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_UploadToGPUTexture**(3)](/SDL_UploadToGPUTexture/3.md), **•**(3), [**SDL\_DownloadFromGPUTexture**(3)](/SDL_DownloadFromGPUTexture/3.md), **•**(3), [**SDL\_CreateGPUTexture**(3)](/SDL_CreateGPUTexture/3.md)
