SDL_GPUBufferLocation(3type)
π SDL_GPUBufferLocation π
okay bestie, welcome to the SDL3 DATATYPES corner of the manual, where we talk about SDL_GPUBufferLocation β aka the lil' glow-up of a struct that tells you where in a buffer you're pointing at. no cap, that's the whole vibe. π
β¨ NAME β¨
SDL_GPUBufferLocation β a structure specifying a location in a buffer. that's it, that's the girl. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_gpu.h>
typedef struct SDL_GPUBufferLocation
{
SDL_GPUBuffer *buffer; /**< The buffer. */
Uint32 offset; /**< The starting byte within the buffer. */
} SDL_GPUBufferLocation;
so we got two fields, both absolute icons:
SDL_GPUBuffer *bufferβ the buffer. literally just the buffer itself, the main character. πUint32 offsetβ the starting byte within the buffer. like, where in the buffer we're starting, in bytes. π¦
π DESCRIPTION π
it's used when copying data between buffers. that's the entire job description. she points at a spot in a buffer so the copy knows where to go. slay. β¨
π AVAILABILITY π
this struct is available since SDL 3.2.0. so if you're on something older, sorry bestie, she wasn't born yet. π
π«Ά SEE ALSO π«Ά
SDL_CopyGPUBufferToBuffer(3)β the function that actually puts this struct to work. go read her too, fr fr. π
and that's the tea, bestie. this page came to you straight from the Simple Directmedia Layer girlies, rocking SDL 3.4.18 β and it's the SDL_GPUBufferLocation(3type) page, periodt. go copy some buffers, you got this π
β¨πΈ
π¦ 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