Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SDL_GPUSupportsShaderFormats - Checks for GPU runtime support.

Availability

       This function is available since SDL 3.2.0.

Function Parameters

format_flags
              a bitflag indicating which shader formats the app is able to provide.

       name   the preferred GPU driver, or NULL to let SDL pick the optimal driver.

Name

       SDL_GPUSupportsShaderFormats - Checks for GPU runtime support.

Return Value

       Returns true if supported, false otherwise.

See Also

SDL_CreateGPUDevice(3)

Simple Directmedia Layer                           SDL 3.2.20                    SDL_GPUSupportsShaderFormats(3)

Synopsis

#include<SDL3/SDL_gpu.h>boolSDL_GPUSupportsShaderFormats(SDL_GPUShaderFormatformat_flags,constchar*name);

See Also