SDL_GPUSupportsShaderFormats(3)
π SDL_GPUSupportsShaderFormats(3) π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where we check whether your machine can even do the GPU thing before you go building a whole renderer on a prayer π«Ά
β¨ NAME β¨
SDL_GPUSupportsShaderFormats β the vibe check that asks "does this GPU runtime actually support the shader formats I'm about to hand it?"
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_gpu.h>
bool SDL_GPUSupportsShaderFormats(
SDL_GPUShaderFormat format_flags,
const char *name);
π FUNCTION PARAMETERS π
format_flagsβ a bitflag telling SDL which shader formats your app is able to provide. like, this is you showing your work, bestie β¨nameβ the GPU driver you'd prefer, orNULLif you're feeling β¨go with the flowβ¨ and want SDL to pick the optimal driver for you. main character energy, honestly.
π₯ RETURN VALUE π₯
Returns true if it's supported, false otherwise. that's it, that's the whole answer. no cap π
π AVAILABILITY π
This function has been around since SDL 3.2.0. iconic behavior, honestly.
π¦ SEE ALSO π¦
SDL_CreateGPUDevice(3)β go here next once the vibe check passes, iykyk
and that's the tea, bestie β this page came to you straight from Simple Directmedia Layer, running SDL 3.4.18, and yeah she's giving SDL_GPUSupportsShaderFormats(3) energy from start to finish πβ¨π
π¦ 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