LiteFX::Rendering::IGraphicsFactory::createSamplers¶
Creates a series of texture samplers.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] Generator<SharedPtr<ISampler>> createSamplers(
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;
Return Value¶
A generator for sampler instances.
Parameters¶
| Name | Description |
|---|---|
| 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¶
createSampler