GPU: shaders, pipelines & buffersSDL 3.2

SDL_EndGPUCopyPass

Ends a copy pass.

Signature

void SDL_EndGPUCopyPass(SDL_GPUCopyPass *copy_pass);

How it works

After it you can begin a render pass in the same command buffer; the GPU makes sure the copies are finished before the draws that read the data.

Parameters

copy_passSDL_GPUCopyPass *

The pass to end.

Example

example.cpp
Official SDL wiki