SDL_DownloadFromGPUTexture - Man Page

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

Header File

Defined in SDL3/SDL_gpu.h

Synopsis

#include "SDL3/SDL.h"

void SDL_DownloadFromGPUTexture(
    SDL_GPUCopyPass *copy_pass,
    const SDL_GPUTextureRegion *source,
    const SDL_GPUTextureTransferInfo *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 texture region.

destination

the destination transfer buffer with image layout information.

Availability

This function is available since SDL 3.2.0.

Referenced By

SDL_CreateGPUTexture(3), SDL_CreateGPUTransferBuffer(3), SDL_GPUTexture.3type(3), SDL_GPUTextureRegion.3type(3), SDL_GPUTextureTransferInfo.3type(3), SDL_GPUTransferBuffer.3type(3).

SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS