Copies data from a texture to a transfer buffer on the GPU timeline.
Defined in <SDL3/SDL_gpu.h>
void SDL_DownloadFromGPUTexture(
SDL_GPUCopyPass *copy_pass,const SDL_GPUTextureRegion *source,
const SDL_GPUTextureTransferInfo *destination);
SDL_GPUCopyPass * | copy_pass | a copy pass handle. |
const SDL_GPUTextureRegion * | source | the source texture region. |
const SDL_GPUTextureTransferInfo * | destination | the destination transfer buffer with image layout information. |
This data is not guaranteed to be copied until the command buffer fence is signaled.
This function is available since SDL 3.1.3.