DOKK / manpages / debian 13 / libsdl3-doc / SDL_GPUSupportsShaderFormats.3.en
SDL_GPUSupportsShaderFormats(3) SDL3 FUNCTIONS SDL_GPUSupportsShaderFormats(3)

SDL_GPUSupportsShaderFormats - Checks for GPU runtime support.

Defined in SDL3/SDL_gpu.h

#include "SDL3/SDL.h"
bool SDL_GPUSupportsShaderFormats(
    SDL_GPUShaderFormat format_flags,
    const char *name);

a bitflag indicating which shader formats the app is able to provide.
the preferred GPU driver, or NULL to let SDL pick the optimal driver.

Returns true if supported, false otherwise.

This function is available since SDL 3.2.0.

(3), SDL_CreateGPUDevice(3)

SDL 3.2.10 Simple Directmedia Layer