getShaderFormats method

int getShaderFormats()

Returns the supported shader formats for this GPU context.

\param device a GPU context to query. \returns a bitflag indicating which shader formats the driver is able to consume.

\since This function is available since SDL 3.2.0.

extern SDL_DECLSPEC SDL_GPUShaderFormat SDLCALL SDL_GetGPUShaderFormats(SDL_GPUDevice *device)

See also:

Implementation

int getShaderFormats() => sdlGetGpuShaderFormats(this);