---
name: "SDL_GPUTextureSupportsSampleCount"
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_GPUTextureSupportsSampleCount"
---

# SDL\_GPUTextureSupportsSampleCount(3)

Determines if a sample count for a texture format is supported.

## NAME

SDL\_GPUTextureSupportsSampleCount - Determines if a sample count for a texture format is supported.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

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

**bool SDL\_GPUTextureSupportsSampleCount(**     **SDL\_GPUDevice \*device,**     **SDL\_GPUTextureFormat format,**     **SDL\_GPUSampleCount sample\_count);**

## FUNCTION PARAMETERS

- *device*

  a GPU context.

- *format*

  the texture format to check.

- *sample\_count*

  the sample count to check.

## RETURN VALUE

Returns whether the sample count is supported for this texture format.

## AVAILABILITY

This function is available since SDL 3.2.0.
