LiteFX::Rendering::DeviceState::sampler¶
Returns a sampler from the device state.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] ISampler& sampler(String const& id) const;
Exceptions¶
| Name | Thrown on |
|---|---|
InvalidArgumentException | Thrown, if no sampler has been added for the provided id. |
Return Value¶
A reference of the sampler.
Parameters¶
| Name | Description |
|---|---|
| id | The identifier associated with the sampler. |