SDL_CopyGPUBufferToBuffer(3)

SDL_CopyGPUBufferToBuffer3

Performs a buffer-to-buffer copy.

Usage

#include "SDL3/SDL.h"

void SDL_CopyGPUBufferToBuffer( SDL_GPUCopyPass *copy_pass, const SDL_GPUBufferLocation *source, const SDL_GPUBufferLocation *destination, Uint32 size, bool cycle);

Header file

Defined in SDL3/SDL_gpu.h

Overview

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.

Availability

This function is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.