SDL_CREATEGPUGRAPHICSPIPELINE(3)
π SDL_CreateGPUGraphicsPipeline
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, this one is literally called SDL_CreateGPUGraphicsPipeline and it's about to make your whole graphics workflow pop off β¨
πΈ NAME πΈ
SDL_CreateGPUGraphicsPipeline β creates a pipeline object to be used in a graphics workflow. that's it, that's the job, she builds you a pipeline π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_gpu.h>
SDL_GPUGraphicsPipeline * SDL_CreateGPUGraphicsPipeline(
SDL_GPUDevice *device,
const SDL_GPUGraphicsPipelineCreateInfo *createinfo);
π¦ DESCRIPTION π¦
so like, there are optional properties you can hand over through props (yes, props, she's a vibe) π and here's the one supported property, no cap:
SDL_PROP_GPU_GRAPHICSPIPELINE_CREATE_NAME_STRINGβ a name that can be displayed in debugging tools. it's giving "label your stuff so future you doesn't cry" π·οΈβ¨
π FUNCTION PARAMETERS π
deviceβ a GPU Context. your main character, the whole GPU situation πcreateinfoβ a struct describing the state of the graphics pipeline to create. it's the blueprint, the mood board, the whole plan fr fr π
π RETURN VALUE π
Returns a graphics pipeline object on success, or NULL on failure π β and when it flops, call SDL_GetError() for more information. she will tell you what went wrong, just ask π«Ά
not me getting NULL back and forgetting to check the errorβ¦ bestie. check the error. π
β AVAILABILITY β
This function is available since SDL 3.2.0. so if you're on anything older, she's simply not there yet π
π SEE ALSO π
go read those too, they're the friend group, you can't just know one of them πΈ
and that's the whole page babes π
brought to you by Simple Directmedia Layer, SDL 3.4.18, and this lil SDL_CreateGPUGraphicsPipeline(3) moment β periodt πβ¨
π¦ 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