#include <SDL_gpu.h>
A structure specifying the parameters of a sampler.
Note that mip_lod_bias is a no-op for the Metal driver. For Metal, LOD bias must be applied via shader instead.
- Since
- This function is available since SDL 3.2.0.
- See also
- SDL_CreateGPUSampler
-
SDL_GPUFilter
-
SDL_GPUSamplerMipmapMode
-
SDL_GPUSamplerAddressMode
-
SDL_GPUCompareOp
Definition at line 1510 of file SDL_gpu.h.
◆ address_mode_u
The addressing mode for U coordinates outside [0, 1).
Definition at line 1515 of file SDL_gpu.h.
◆ address_mode_v
The addressing mode for V coordinates outside [0, 1).
Definition at line 1516 of file SDL_gpu.h.
◆ address_mode_w
The addressing mode for W coordinates outside [0, 1).
Definition at line 1517 of file SDL_gpu.h.
◆ compare_op
The comparison operator to apply to fetched data before filtering.
Definition at line 1520 of file SDL_gpu.h.
◆ enable_anisotropy
bool SDL_GPUSamplerCreateInfo::enable_anisotropy |
true to enable anisotropic filtering.
Definition at line 1523 of file SDL_gpu.h.
◆ enable_compare
bool SDL_GPUSamplerCreateInfo::enable_compare |
true to enable comparison against a reference value during lookups.
Definition at line 1524 of file SDL_gpu.h.
◆ mag_filter
The magnification filter to apply to lookups.
Definition at line 1513 of file SDL_gpu.h.
◆ max_anisotropy
float SDL_GPUSamplerCreateInfo::max_anisotropy |
The anisotropy value clamp used by the sampler. If enable_anisotropy is false, this is ignored.
Definition at line 1519 of file SDL_gpu.h.
◆ max_lod
float SDL_GPUSamplerCreateInfo::max_lod |
Clamps the maximum of the computed LOD value.
Definition at line 1522 of file SDL_gpu.h.
◆ min_filter
The minification filter to apply to lookups.
Definition at line 1512 of file SDL_gpu.h.
◆ min_lod
float SDL_GPUSamplerCreateInfo::min_lod |
Clamps the minimum of the computed LOD value.
Definition at line 1521 of file SDL_gpu.h.
◆ mip_lod_bias
float SDL_GPUSamplerCreateInfo::mip_lod_bias |
The bias to be added to mipmap LOD calculation.
Definition at line 1518 of file SDL_gpu.h.
◆ mipmap_mode
The mipmap filter to apply to lookups.
Definition at line 1514 of file SDL_gpu.h.
◆ padding1
Uint8 SDL_GPUSamplerCreateInfo::padding1 |
◆ padding2
Uint8 SDL_GPUSamplerCreateInfo::padding2 |
◆ props
A properties ID for extensions. Should be 0 if no extensions are needed.
Definition at line 1528 of file SDL_gpu.h.
The documentation for this struct was generated from the following file: