SDL_DownloadFromGPUBuffer - Man Page

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

Header File

Defined in SDL3/SDL_gpu.h

Synopsis

#include "SDL3/SDL.h"

void SDL_DownloadFromGPUBuffer(
    SDL_GPUCopyPass *copy_pass,
    const SDL_GPUBufferRegion *source,
    const SDL_GPUTransferBufferLocation *destination);

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.

Availability

This function is available since SDL 3.2.0.

Referenced By

SDL_CreateGPUBuffer(3), SDL_CreateGPUTransferBuffer(3), SDL_GPUBuffer.3type(3), SDL_GPUBufferRegion.3type(3), SDL_GPUTransferBuffer.3type(3), SDL_GPUTransferBufferLocation.3type(3).

SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS