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_CopyGPUBufferToBuffer - Performs a buffer-to-buffer copy.

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                       SDL_CopyGPUBufferToBuffer(3)

Description

       This copy occurs on the GPU timeline. You may assume the copy has finished in subsequent commands.

Function Parameters

copy_pass
              a copy pass handle.

       source the buffer and offset to copy from.

       destination
              the buffer and offset to copy to.

       size   the length of the buffer to copy.

       cycle  if true, cycles the destination buffer if it is already bound, otherwise overwrites the data.

Header File

       Defined in SDL3/SDL_gpu.h

Name

       SDL_CopyGPUBufferToBuffer - Performs a buffer-to-buffer copy.

Synopsis

#include"SDL3/SDL.h"voidSDL_CopyGPUBufferToBuffer(SDL_GPUCopyPass*copy_pass,constSDL_GPUBufferLocation*source,constSDL_GPUBufferLocation*destination,Uint32size,boolcycle);

See Also