Skip to content

LiteFX::Rendering::DeviceState::add

Adds a new descriptor set to the device state.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] void add(
    String const& id,
    UniquePtr<IDescriptorSet>&& descriptorSet);

Exceptions

NameThrown on
InvalidArgumentExceptionThrown, if another descriptor set with the same id has already been added.

Parameters

NameDescription
idThe identifier for the descriptor set.
descriptorSetThe descriptor set to add to the device state.