DOKK / manpages / debian 13 / libsdl3-doc / SDL_DownloadFromGPUBuffer.3.en
SDL_DownloadFromGPUBuffer(3) SDL3 FUNCTIONS SDL_DownloadFromGPUBuffer(3)

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

Defined in SDL3/SDL_gpu.h

#include "SDL3/SDL.h"
void SDL_DownloadFromGPUBuffer(
    SDL_GPUCopyPass *copy_pass,
    const SDL_GPUBufferRegion *source,
    const SDL_GPUTransferBufferLocation *destination);

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

a copy pass handle.
the source buffer with offset and size.
the destination transfer buffer with offset.

This function is available since SDL 3.2.0.

SDL 3.2.10 Simple Directmedia Layer