Skip to content

LiteFX::Rendering::DescriptorSetLayoutBuilder::withStaticSampler

Defines a static sampler at the descriptor bound to binding.

Synopsis

Declared in <litefx/rendering_builders.hpp>

template<typename TSelf>
[[nodiscard]] constexpr TSelf&& withStaticSampler(this 
    TSelf&& self,
    UInt32 binding,
    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 minLod = 0.f,
    Float maxLod = std::numeric_limits<Float>::max(),
    Float anisotropy = 0.f);

Return Value

Note

The return value should not be discarded.

Parameters

NameDescription
bindingThe binding point for the descriptor.
magFilterThe magnifying filter operation.
minFilterThe minifying filter operation.
borderUThe border address mode into U direction.
borderVThe border address mode into V direction.
borderWThe border address mode into W direction.
mipMapModeThe mip map filter operation.
mipMapBiasThe mip map bias.
minLodThe closest mip map distance level.
maxLodThe furthest mip map distance level.
anisotropyThe maximum anisotropy.