LiteFX::Rendering::DeviceState::add¶
Adds a new sampler to the device state.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] void add(
String const& id,
SharedPtr<ISampler>&& sampler);
Exceptions¶
| Name | Thrown on |
|---|---|
InvalidArgumentException | Thrown, if another sampler with the same id has already been added. |
Parameters¶
| Name | Description |
|---|---|
| id | The identifier for the sampler. |
| sampler | The sampler to add to the device state. |