SDL_GetGPUShaderFormats(3)

SDL_GetGPUShaderFormats3

Returns the supported shader formats for this gpu context.

Usage

#include "SDL3/SDL.h"

SDL_GPUShaderFormat SDL_GetGPUShaderFormats(SDL_GPUDevice *device);

Header file

Defined in SDL3/SDL_gpu.h

Function parameters

device

a GPU context to query.

Return value

( SDL_GPUShaderFormat ) Returns a bitflag indicating which shader formats the driver is able to consume.

Availability

This function is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.