Docs / Ray tracing

Glossary: TlasUpdateResult

The values of TlasUpdateResult.

What Tlas.EndUpdate had to do to bring the tree in line with the instances just declared.

An enum, in the namespace BorrowedTorch.RayTracing. Nothing needs it: it is there to watch, a count of rebuilds in a profiler say. The scene page shows it in context, with a picture.

Values

Unchanged →

Nothing that affects the tree changed: every instance is where it was, with the same id, BLAS, matrix and BLAS version. Version didn’t move; FlagsVersion did, if flags alone changed.

Refitted →

The same instances, some of them moved: their boxes were recomputed, and the tree refitted over its old shape. Version moved.

Rebuilt →

Instances were added, removed or reordered, or a refit had worn the tree too far, its root’s area past twice or its cost past one and a half times the last build’s: the tree was built afresh. Version moved. The first update of a Tlas is always this.