Skip to content

LiteFX::Rendering::ITopLevelAccelerationStructure::withInstance

Adds an instance to the current TLAS.

Synopsis

Declared in <litefx/rendering_api.hpp>

template<typename TSelf>
TSelf&& withInstance(this 
    TSelf&& self,
    Instance const& instance) noexcept;

Return Value

A reference to the current TLAS.

Parameters

NameDescription
instanceThe instance to add to the TLAS.