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

◆ get_default_nearest()

vk::Sampler MayaFlux::Portal::Graphics::SamplerForge::get_default_nearest ( )

Get a default nearest sampler.

Returns
Sampler with nearest filtering and clamp-to-edge addressing

Definition at line 109 of file SamplerForge.cpp.

110{
111 SamplerConfig config;
112 config.mag_filter = FilterMode::NEAREST;
113 config.min_filter = FilterMode::NEAREST;
114 config.address_mode_u = AddressMode::CLAMP_TO_EDGE;
115 config.address_mode_v = AddressMode::CLAMP_TO_EDGE;
116 config.address_mode_w = AddressMode::CLAMP_TO_EDGE;
117 config.max_anisotropy = 1.0F;
118 return get_or_create(config);
119}
vk::Sampler get_or_create(const SamplerConfig &config)
Get or create a sampler with the given configuration.
@ NEAREST
Nearest neighbor (pixelated)

References MayaFlux::Portal::Graphics::SamplerConfig::address_mode_u, MayaFlux::Portal::Graphics::SamplerConfig::address_mode_v, MayaFlux::Portal::Graphics::SamplerConfig::address_mode_w, MayaFlux::Portal::Graphics::CLAMP_TO_EDGE, get_or_create(), MayaFlux::Portal::Graphics::SamplerConfig::mag_filter, MayaFlux::Portal::Graphics::SamplerConfig::max_anisotropy, MayaFlux::Portal::Graphics::SamplerConfig::min_filter, and MayaFlux::Portal::Graphics::NEAREST.

+ Here is the call graph for this function: