Skip to content

LiteFX::Rendering::DeviceState::add

Adds a new image to the device state.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] void add(
    String const& id,
    SharedPtr<IImage>&& image);

Exceptions

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

Parameters

NameDescription
idThe identifier for the image.
imageThe image to add to the device state.