SDL_GPUSamplerCreateInfo

A structure specifying the parameters of a sampler.

Members

Variables

address_mode_u
SDL_GPUSamplerAddressMode address_mode_u;

The addressing mode for U coordinates outside [0, 1).

address_mode_v
SDL_GPUSamplerAddressMode address_mode_v;

The addressing mode for V coordinates outside [0, 1).

address_mode_w
SDL_GPUSamplerAddressMode address_mode_w;

The addressing mode for W coordinates outside [0, 1).

compare_op
SDL_GPUCompareOp compare_op;

The comparison operator to apply to fetched data before filtering.

enable_anisotropy
bool enable_anisotropy;

true to enable anisotropic filtering.

enable_compare
bool enable_compare;

true to enable comparison against a reference value during lookups.

mag_filter
SDL_GPUFilter mag_filter;

The magnification filter to apply to lookups.

max_anisotropy
float max_anisotropy;

The anisotropy value clamp used by the sampler. If enable_anisotropy is false, this is ignored.

max_lod
float max_lod;

Clamps the maximum of the computed LOD value.

min_filter
SDL_GPUFilter min_filter;

The minification filter to apply to lookups.

min_lod
float min_lod;

Clamps the minimum of the computed LOD value.

mip_lod_bias
float mip_lod_bias;

The bias to be added to mipmap LOD calculation.

mipmap_mode
SDL_GPUSamplerMipmapMode mipmap_mode;

The mipmap filter to apply to lookups.

padding1
Uint8 padding1;
Undocumented in source.
padding2
Uint8 padding2;
Undocumented in source.
props
SDL_PropertiesID props;

A properties ID for extensions. Should be 0 if no extensions are needed.

See Also

Meta