Skip to content

LiteFX::Rendering::ITopLevelAccelerationStructure::addInstance

Adds an instance to the TLAS.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] virtual void addInstance(Instance const& instance) = 0;

Exceptions

NameThrown on
RuntimeExceptionThrown, if the acceleration structure buffers have already been allocated.

Parameters

NameDescription
instanceThe instance to add to the TLAS.