SDL_DownloadFromGPUTexture3
Copies data from a texture to a transfer buffer on the gpu timeline.
Usage
#include "SDL3/SDL.h"
void SDL_DownloadFromGPUTexture( SDL_GPUCopyPass *copy_pass, const SDL_GPUTextureRegion *source, const SDL_GPUTextureTransferInfo *destination);
Header file
Defined in SDL3/SDL_gpu.h
Overview
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. |