Skip to content

LiteFX::Rendering::Backends::VulkanBottomLevelAccelerationStructure::addBoundingBox

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

Synopses

Declared in <litefx/backends/vulkan.hpp>

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

[[dllimport, dllexport]] virtual void addBoundingBox(BoundingBoxes const& aabb) override;

» more...

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

[[dllimport, dllexport]] virtual void addBoundingBox(BoundingBoxes const& aabbs) = 0;

» more...

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

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

» more...

Exceptions

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

Parameters

NameDescription
aabbsThe bounding boxes 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.