LiteFX::Rendering::Backends::DirectX12BottomLevelAccelerationStructure::addBoundingBox¶
Adds a buffer containing axis-aligned bounding boxes to the BLAS.
Synopses¶
Declared in <litefx/backends/dx12.hpp>
Adds a buffer containing axis-aligned bounding boxes to the BLAS.
[[dllimport, dllexport]] virtual void addBoundingBox(BoundingBoxes const& aabb) override;
Adds a buffer containing axis-aligned bounding boxes to the BLAS.
[[dllimport, dllexport]] virtual void addBoundingBox(BoundingBoxes const& aabbs) = 0;
Adds a buffer containing axis-aligned bounding boxes to the BLAS.
[[dllimport, dllexport]] void addBoundingBox(
SharedPtr<IBuffer const> const& buffer,
GeometryFlags flags = GeometryFlags::None);
Exceptions¶
| Name | Thrown on |
|---|---|
RuntimeException | Thrown, if the acceleration structure already contains triangle meshes. |
Parameters¶
| Name | Description |
|---|---|
| aabbs | The bounding boxes to add to the BLAS. |
| buffer | A buffer containing the bounding box definitions. |
| flags | The flags that control how the primitives in the geometry behaves during ray-tracing. |