SDL_DownloadFromGPUTexture - Copies data from a texture to a transfer buffer on the GPU timeline.
Contents
Availability
This function is available since SDL 3.2.0.
Simple Directmedia Layer SDL 3.2.10 SDL_DownloadFromGPUTexture(3)
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 texture region.
destination
the destination transfer buffer with image layout information.
Header File
Defined in SDL3/SDL_gpu.h
Name
SDL_DownloadFromGPUTexture - Copies data from a texture to a transfer buffer on the GPU timeline.
Synopsis
#include"SDL3/SDL.h"voidSDL_DownloadFromGPUTexture(SDL_GPUCopyPass*copy_pass,constSDL_GPUTextureRegion*source,constSDL_GPUTextureTransferInfo*destination);
