---
name: "SDL_GetGPUShaderFormats"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GetGPUShaderFormats"
---

# SDL\_GetGPUShaderFormats(3)

Returns the supported shader formats for this GPU context.

## NAME

SDL\_GetGPUShaderFormats - Returns the supported shader formats for this GPU context.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**SDL\_GPUShaderFormat SDL\_GetGPUShaderFormats(SDL\_GPUDevice \*device);**

## 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.
