Skip to content

LiteFX::Rendering::GraphicsFactory::createSampler

Creates a texture sampler.

Synopses

Declared in <litefx/rendering.hpp>

Creates a texture sampler.

virtual SharedPtr<TSampler> 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 = 0;

» more...

Creates a texture sampler.

virtual SharedPtr<TSampler> createSampler(
    String const& name,
    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 = 0;

» more...

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.
nameThe name of the sampler.

See Also

createSamplers