---
name: "SDL_DownloadFromGPUBuffer"
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_DownloadFromGPUBuffer"
---

# SDL\_DownloadFromGPUBuffer(3)

Copies data from a buffer to a transfer buffer on the GPU timeline.

## NAME

SDL\_DownloadFromGPUBuffer - Copies data from a buffer to a transfer buffer on the GPU timeline.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

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

**void SDL\_DownloadFromGPUBuffer(**     **SDL\_GPUCopyPass \*copy\_pass,**     **const SDL\_GPUBufferRegion \*source,**     **const SDL\_GPUTransferBufferLocation \*destination);**

## DESCRIPTION

This data is not guaranteed to be copied until the command buffer fence is signaled.

## FUNCTION PARAMETERS

- *copy\_pass*

  a copy pass handle.

- *source*

  the source buffer with offset and size.

- *destination*

  the destination transfer buffer with offset.

## AVAILABILITY

This function is available since SDL 3.2.0.
