MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ nearest_clamped()

SamplerConfig MayaFlux::Portal::Graphics::SamplerPresets::nearest_clamped ( )
inlinenodiscard

Exact texels, no blending; outside the image the edge texel continues.

For maps, masks and indices.

Definition at line 190 of file SamplerForge.hpp.

191 {
192 return { .mag_filter = FilterMode::NEAREST, .min_filter = FilterMode::NEAREST,
193 .address_mode_u = AddressMode::CLAMP_TO_EDGE, .address_mode_v = AddressMode::CLAMP_TO_EDGE,
194 .address_mode_w = AddressMode::CLAMP_TO_EDGE };
195 }
@ NEAREST
Nearest neighbor (pixelated).

References MayaFlux::Portal::Graphics::CLAMP_TO_EDGE, and MayaFlux::Portal::Graphics::NEAREST.