Skip to content

LiteFX::Rendering::DeviceState::accelerationStructure

Returns an acceleration structure from the device state.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] IAccelerationStructure& accelerationStructure(String const& id) const;

Exceptions

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

Return Value

A reference of the acceleration structure.

Parameters

NameDescription
idThe identifier associated with the acceleration structure.