LiteFX::Rendering::Backends::VulkanDescriptorSetLayoutBuilder::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¶
| Name | Description |
|---|---|
| binding | The binding point for the descriptor. |
| magFilter | The magnifying filter operation. |
| minFilter | The minifying filter operation. |
| borderU | The border address mode into U direction. |
| borderV | The border address mode into V direction. |
| borderW | The border address mode into W direction. |
| mipMapMode | The mip map filter operation. |
| mipMapBias | The mip map bias. |
| minLod | The closest mip map distance level. |
| maxLod | The furthest mip map distance level. |
| anisotropy | The maximum anisotropy. |