Skip to content

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

NameThrown on
InvalidArgumentExceptionThrown, if no sampler has been added for the provided id.

Return Value

A reference of the sampler.

Parameters

NameDescription
idThe identifier associated with the sampler.