SDL_UploadToGPUBuffer(3)
π SDL_UploadToGPUBuffer π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today's main character is SDL_UploadToGPUBuffer β¨ she's a whole function and she's here to move your data where it needs to go π«Ά
β¨ NAME β¨
SDL_UploadToGPUBuffer β uploads data from a transfer buffer to a buffer. that's it, that's the vibe π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_gpu.h>
void SDL_UploadToGPUBuffer(
SDL_GPUCopyPass *copy_pass,
const SDL_GPUTransferBufferLocation *source,
const SDL_GPUBufferRegion *destination,
bool cycle);
like. look at her. four little params and she's serving π
π¦ DESCRIPTION π¦
the upload happens on the GPU timeline, okay? so the timing is giving async but make it graphics. and the best part: you may assume that the upload has finished in subsequent commands. no cap. so you don't have to sit there stressing about whether it landed β by the time your next commands roll around, it's done. slay π₯
π FUNCTION PARAMETERS π
copy_passβ a copy pass handle. she's the pass doing the copying, obviously πsourceβ the source transfer buffer, with offset. iykyk, offset included, don't forget it πdestinationβ the destination buffer, with offset and size. yes bestie, size too, she's not like the others πcycleβ iftrue, it cycles the buffer if it's already bound. otherwise it overwrites the data. so like, cycling vs. straight-up overwriting, pick your fighter π
β AVAILABILITY β
this function has been available since SDL 3.2.0. iconic behavior, honestly π
and that's the whole page, bestie!! this one comes to you from Simple Directmedia Layer, version SDL 3.4.18 π go forth and upload responsibly, ily, bye!! πΈβ¨ππ¦π π«Ά
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms