---
name: "SDL_GPUSamplerCreateInfo"
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_GPUSamplerCreateInfo"
---

# SDL\_GPUSamplerCreateInfo(3type)

A structure specifying the parameters of a sampler.

## NAME

SDL\_GPUSamplerCreateInfo - A structure specifying the parameters of a sampler.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

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

**typedef struct SDL\_GPUSamplerCreateInfo** **{**     **SDL\_GPUFilter min\_filter;                  /\*\*\< The minification filter to apply to lookups. \*/**     **SDL\_GPUFilter mag\_filter;                  /\*\*\< The magnification filter to apply to lookups. \*/**     **SDL\_GPUSamplerMipmapMode mipmap\_mode;      /\*\*\< The mipmap filter to apply to lookups. \*/**     **SDL\_GPUSamplerAddressMode address\_mode\_u;  /\*\*\< The addressing mode for U coordinates outside \[0, 1). \*/**     **SDL\_GPUSamplerAddressMode address\_mode\_v;  /\*\*\< The addressing mode for V coordinates outside \[0, 1). \*/**     **SDL\_GPUSamplerAddressMode address\_mode\_w;  /\*\*\< The addressing mode for W coordinates outside \[0, 1). \*/**     **float mip\_lod\_bias;                        /\*\*\< The bias to be added to mipmap LOD calculation. \*/**     **float max\_anisotropy;                      /\*\*\< The anisotropy value clamp used by the sampler. If enable\_anisotropy is false, this is ignored. \*/**     **SDL\_GPUCompareOp compare\_op;               /\*\*\< The comparison operator to apply to fetched data before filtering. \*/**     **float min\_lod;                             /\*\*\< Clamps the minimum of the computed LOD value. \*/**     **float max\_lod;                             /\*\*\< Clamps the maximum of the computed LOD value. \*/**     **bool enable\_anisotropy;                /\*\*\< true to enable anisotropic filtering. \*/**     **bool enable\_compare;                   /\*\*\< true to enable comparison against a reference value during lookups. \*/**     **Uint8 padding1;**     **Uint8 padding2;**     **SDL\_PropertiesID props;                    /\*\*\< A properties ID for extensions. Should be 0 if no extensions are needed. \*/** **} SDL\_GPUSamplerCreateInfo;**

## DESCRIPTION

Note that mip\_lod\_bias is a no-op for the Metal driver. For Metal, LOD bias must be applied via shader instead.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_CreateGPUSampler**(3)](/SDL_CreateGPUSampler/3.md), **•**(3), [**SDL\_GPUFilter**(3type)](/SDL_GPUFilter/3type.md), **•**(3), [**SDL\_GPUSamplerMipmapMode**(3type)](/SDL_GPUSamplerMipmapMode/3type.md), **•**(3), [**SDL\_GPUSamplerAddressMode**(3type)](/SDL_GPUSamplerAddressMode/3type.md), **•**(3), [**SDL\_GPUCompareOp**(3type)](/SDL_GPUCompareOp/3type.md)
