---
name: "SDL_CopyGPUTextureToTexture"
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_CopyGPUTextureToTexture"
---

# SDL\_CopyGPUTextureToTexture(3)

Performs a texture-to-texture copy.

## NAME

SDL\_CopyGPUTextureToTexture - Performs a texture-to-texture copy.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

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

**void SDL\_CopyGPUTextureToTexture(**     **SDL\_GPUCopyPass \*copy\_pass,**     **const SDL\_GPUTextureLocation \*source,**     **const SDL\_GPUTextureLocation \*destination,**     **Uint32 w,**     **Uint32 h,**     **Uint32 d,**     **bool cycle);**

## DESCRIPTION

This copy occurs on the GPU timeline. You may assume the copy has finished in subsequent commands.

## FUNCTION PARAMETERS

- *copy\_pass*

  a copy pass handle.

- *source*

  a source texture region.

- *destination*

  a destination texture region.

- *w*

  the width of the region to copy.

- *h*

  the height of the region to copy.

- *d*

  the depth of the region to copy.

- *cycle*

  if true, cycles the destination texture if the destination texture is bound, otherwise overwrites the data.

## AVAILABILITY

This function is available since SDL 3.2.0.
