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 🫢


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