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

# SDL\_GPUSampleCount(3type)

Specifies the sample count of a texture.

## NAME

SDL\_GPUSampleCount - Specifies the sample count of a texture.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

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

**typedef enum SDL\_GPUSampleCount** **{**     **SDL\_GPU\_SAMPLECOUNT\_1,  /\*\*\< No multisampling. \*/**     **SDL\_GPU\_SAMPLECOUNT\_2,  /\*\*\< MSAA 2x \*/**     **SDL\_GPU\_SAMPLECOUNT\_4,  /\*\*\< MSAA 4x \*/**     **SDL\_GPU\_SAMPLECOUNT\_8   /\*\*\< MSAA 8x \*/** **} SDL\_GPUSampleCount;**

## DESCRIPTION

Used in multisampling. Note that this value only applies when the texture is used as a render target.

## AVAILABILITY

This enum is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_CreateGPUTexture**(3)](/SDL_CreateGPUTexture/3.md), **•**(3), [**SDL\_GPUTextureSupportsSampleCount**(3)](/SDL_GPUTextureSupportsSampleCount/3.md)
