Skip to content

LiteFX::Rendering::IBottomLevelAccelerationStructure::addBoundingBox

Adds a buffer containing axis-aligned bounding boxes to the BLAS.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] void addBoundingBox(
    SharedPtr<IBuffer const> const& buffer,
    GeometryFlags flags = GeometryFlags::None);

Exceptions

NameThrown on
RuntimeExceptionThrown, if the acceleration structure already contains triangle meshes.

Parameters

NameDescription
bufferA buffer containing the bounding box definitions.
flagsThe flags that control how the primitives in the geometry behaves during ray-tracing.