SDL_UploadToGPUBuffer

Uploads data from a transfer buffer to a buffer.

The upload occurs on the GPU timeline. You may assume that the upload has finished in subsequent commands.

extern (C) nothrow @nogc extern
void
SDL_UploadToGPUBuffer

Parameters

copy_pass SDL_GPUCopyPass*

a copy pass handle.

source const(SDL_GPUTransferBufferLocation)*

the source transfer buffer with offset.

destination const(SDL_GPUBufferRegion)*

the destination buffer with offset and size.

cycle bool

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

Meta