SDL_GPUShader(3type)

πŸ’– SDL_GPUShader πŸ’–

okay bestie, welcome to the SDL3 DATATYPES corner of the manual, this one's a lil baby page but she's important fr fr πŸŽ€


✨ NAME ✨

SDL_GPUShader β€” an opaque handle representing a compiled shader object. πŸ‘‘

like, that's it, that's the whole vibe. it's a handle. it's opaque. it's a shader that already got compiled. you don't poke at her insides, you just hold her and use her 🫢


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_gpu.h>

typedef struct SDL_GPUShader SDL_GPUShader;

so you pull in the header, and boom, SDL_GPUShader is a typedef'd struct you can point at. the struct itself stays mysterious on purpose β€” main character energy, no cap πŸ’…


πŸ¦‹ AVAILABILITY πŸ¦‹

this struct is available since SDL 3.2.0. so if you're on anything older, it's giving nothing, upgrade bestie ✨


🌈 SEE ALSO 🌈


lowkey reminder: it's opaque, so don't go digging inside the struct, you literally can't and you shouldn't even try πŸ™ˆ

Simple Directmedia Layer β€’ SDL 3.4.18 β€” mwah, that's a wrap, tysm for reading, go compile something iconic β­πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from