LiteFX::Rendering::IBottomLevelAccelerationStructure::TriangleMesh::TriangleMesh¶
Constructors
Synopses¶
Declared in <litefx/rendering_api.hpp>
Initializes a new triangle mesh by copying another one.
constexpr TriangleMesh(TriangleMesh const& other) = default;
Initializes a new triangle mesh by taking over another one.
constexpr TriangleMesh(TriangleMesh&& other) noexcept = default;
Initializes a new triangle mesh.
TriangleMesh(
SharedPtr<IVertexBuffer const> const& vertexBuffer,
SharedPtr<IIndexBuffer const> const& indexBuffer = nullptr,
SharedPtr<IBuffer const> const& transformBuffer = nullptr,
GeometryFlags flags = GeometryFlags::None);
Parameters¶
| Name | Description |
|---|---|
| other | The triangle mesh to copy. |
| vertexBuffer | The vertex buffer that stores the mesh vertices. |
| indexBuffer | The index buffer that stores the mesh indices. |
| transformBuffer | A buffer that stores a row-major 3x4 transformation matrix applied to the vertices when building the BLAS. |
| flags | The flags that control how the primitives in the geometry behaves during ray-tracing. |