logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                       SDL_DownloadFromGPUBuffer(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 buffer with offset and size.

       destination
              the destination transfer buffer with offset.

Header File

       Defined in SDL3/SDL_gpu.h

Name

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

Synopsis

#include"SDL3/SDL.h"voidSDL_DownloadFromGPUBuffer(SDL_GPUCopyPass*copy_pass,constSDL_GPUBufferRegion*source,constSDL_GPUTransferBufferLocation*destination);

See Also