Copies data from a buffer to a transfer buffer on the GPU timeline.
Defined in <SDL3/SDL_gpu.h>
void SDL_DownloadFromGPUBuffer(
SDL_GPUCopyPass *copy_pass,const SDL_GPUBufferRegion *source,
const SDL_GPUTransferBufferLocation *destination);
SDL_GPUCopyPass * | copy_pass | a copy pass handle. |
const SDL_GPUBufferRegion * | source | the source buffer with offset and size. |
const SDL_GPUTransferBufferLocation * | destination | the destination transfer buffer with offset. |
This data is not guaranteed to be copied until the command buffer fence is signaled.
This function is available since SDL 3.1.3.