Skip to content

LiteFX::Rendering::IBottomLevelAccelerationStructure::withBoundingBox

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

Synopses

Declared in <litefx/rendering_api.hpp>

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

template<typename TSelf>
TSelf&& withBoundingBox(this 
    TSelf&& self,
    BoundingBoxes const& aabb);

» more...

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

template<typename TSelf>
TSelf&& withBoundingBox(this 
    TSelf&& self,
    SharedPtr<IBuffer const> const& buffer,
    GeometryFlags flags = GeometryFlags::None);

» more...

Exceptions

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

Return Value

A reference to the current BLAS.

Parameters

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