LiteFX::Rendering::Backends::VulkanGraphicsFactory::createSampler¶
Creates a texture sampler.
Synopses¶
Declared in <litefx/backends/vulkan.hpp>
Creates a texture sampler.
[[dllimport, dllexport]] virtual SharedPtr<IVulkanSampler> 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 override;
Creates a texture sampler.
[[dllimport, dllexport]] virtual SharedPtr<IVulkanSampler> 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 |
|---|---|
| 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. |
| name | The name of the sampler. |
See Also¶
createSamplers