Skip to content

LiteFX::Rendering::DeviceState::add

Adds a new pipeline to the device state and uses its name as identifier.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] void add(UniquePtr<IPipeline>&& pipeline);

Exceptions

NameThrown on
InvalidArgumentExceptionThrown, if another pipeline with the same identifier has already been added.

Parameters

NameDescription
pipelineThe pipeline to add to the device state.