Skip to content

LiteFX::Rendering::Backends::VulkanGraphicsFactory::createSampler

Creates a texture sampler.

Synopsis

Declared in <litefx/backends/vulkan.hpp>

[[dllimport, dllexport]] virtual SharedPtr<IVulkanSampler> createSampler(
    FilterMode magFilter = FilterMode::Nearest,
    FilterMode minFilter = FilterMode::Nearest,
    BorderMode borderU = BorderMode::Repeat,
    BorderMode borderV = BorderMode::Repeat,
    BorderMode borderW = BorderMode::Repeat,
    MipMapMode mipMapMode = MipMapMode::Nearest,
    Float mipMapBias = 0.f,
    Float maxLod = std::numeric_limits<Float>::max(),
    Float minLod = 0.f,
    Float anisotropy = 0.f) const override;

Return Value

The instance of the sampler.

Parameters

NameDescription
magFilterThe filter operation used for magnifying.
minFilterThe filter operation used for minifying.
borderUThe border mode along the U-axis.
borderVThe border mode along the V-axis.
borderWThe border mode along the W-axis.
mipMapModeThe mip map mode.
mipMapBiasThe mip map bias.
maxLodThe maximum level of detail value.
minLodThe minimum level of detail value.
anisotropyThe level of anisotropic filtering.

See Also

createSamplers