LiteFX::Rendering::Backends::DirectX12RenderPipeline::updateSamples¶
Changes the multi-sampling level of the pipeline.
Synopsis¶
Declared in <litefx/backends/dx12.hpp>
[[dllimport, dllexport]] virtual void updateSamples(MultiSamplingLevel samples) override;
Description¶
Changing the multi-sampling level of a pipeline causes it to be re-created, which is considered an expensive operation. Don't use this method to change samples frequently, for example when binding frame buffers with different sample levels. Instead, use multiple pipelines for this purpose.
Parameters¶
| Name | Description |
|---|---|
| samples | Describes the number of samples with which a IImage is sampled. |