Skip to content

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

NameDescription
samplesDescribes the number of samples with which a IImage is sampled.