LiteFX::Rendering::Backends::DirectX12GraphicsFactory::createSampler¶
Creates a texture sampler.
Synopsis¶
Declared in <litefx/backends/dx12.hpp>
[[dllimport, dllexport]] virtual SharedPtr<IDirectX12Sampler> 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 override;
Return Value¶
The instance of the sampler.
Parameters¶
| Name | Description |
|---|---|
| name | The name of the sampler. |
| magFilter | The filter operation used for magnifying. |
| minFilter | The filter operation used for minifying. |
| borderU | The border mode along the U-axis. |
| borderV | The border mode along the V-axis. |
| borderW | The border mode along the W-axis. |
| mipMapMode | The mip map mode. |
| mipMapBias | The mip map bias. |
| maxLod | The maximum level of detail value. |
| minLod | The minimum level of detail value. |
| anisotropy | The level of anisotropic filtering. |
See Also¶
createSamplers