Skip to main content

Module sampler

Module sampler 

Source
Expand description

Texture sampler configuration and caching.

Provides enumerations for texture filtering and wrapping modes, a configuration struct combining them, and a simple in-memory cache so identical configurations share the same sampler object.

Structs§

SamplerCache
In-memory cache that de-duplicates identical sampler configurations.
SamplerConfig
Complete configuration for a texture sampler.
SamplerHandle
A handle to a cached sampler, returned by SamplerCache.

Enums§

FilterMode
How texels are filtered when a texture is sampled at a non-integer coordinate.
WrapMode
How texture coordinates outside [0, 1] are resolved.

Type Aliases§

LodBias
The level-of-detail bias applied when selecting a mipmap level.