A structure specifying the parameters of a sampler.
Defined in <SDL3/SDL_gpu.h>
typedef struct SDL_GPUSamplerCreateInfo
{/**< The minification filter to apply to lookups. */
SDL_GPUFilter min_filter; /**< The magnification filter to apply to lookups. */
SDL_GPUFilter mag_filter; /**< The mipmap filter to apply to lookups. */
SDL_GPUSamplerMipmapMode mipmap_mode; /**< The addressing mode for U coordinates outside [0, 1). */
SDL_GPUSamplerAddressMode address_mode_u; /**< The addressing mode for V coordinates outside [0, 1). */
SDL_GPUSamplerAddressMode address_mode_v; /**< The addressing mode for W coordinates outside [0, 1). */
SDL_GPUSamplerAddressMode address_mode_w; 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. */
/**< The comparison operator to apply to fetched data before filtering. */
SDL_GPUCompareOp compare_op; 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;
/**< A properties ID for extensions. Should be 0 if no extensions are needed. */
SDL_PropertiesID props; } SDL_GPUSamplerCreateInfo;
This function is available since SDL 3.1.3