SDL_PUSHGPUFRAGMENTUNIFORMDATA(3)
π NAME π
SDL_PushGPUFragmentUniformData β bestie, this is the one that pushes data to a fragment uniform slot on the command buffer. π«Ά
β¨ SYNOPSIS β¨
#include <SDL3/SDL_gpu.h>
void SDL_PushGPUFragmentUniformData(
SDL_GPUCommandBuffer *command_buffer,
Uint32 slot_index,
const void *data,
Uint32 length);
πΈ DESCRIPTION πΈ
okay so here's the vibe: every draw call you make in this command buffer after you call this function is gonna use this uniform data. it's giving "set it once, everything downstream is obsessed with it." π
π¨ IMPORTANT ALIGNMENT LORE, DO NOT SKIP: the data you push must respect std140 layout conventions. in practical terms that means you gotta make sure yourvec3andvec4fields are 16-byte aligned. no cap. if you ignore this, that's on you, bestie. π
π FUNCTION PARAMETERS π
command_bufferβ a command buffer. yeah that's it, that's the whole description. she's simple like that. π¦slot_indexβ the fragment uniform slot you're pushing data to. pick your slot, queen. πdataβ client data to write.lengthβ the length of the data to write. literally just how much you're writing. β
π AVAILABILITY π
this one's been around since SDL 3.2.0. iconic behavior fr fr. β¨
and that's the whole page, bestie β every flag, every param, every alignment warning, all of it, no details left behind. mwah. π
signing off from the Simple Directmedia Layer girlies, SDL 3.4.18 era β catch you in the next SDL_PushGPUFragmentUniformData(3) manpage, iykyk π§ββοΈ
π¦ 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