bvh/inspect.h
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // SPDX-License-Identifier: BSD-3-Clause | ||
| 2 | #pragma once | ||
| 3 | |||
| 4 | #include <cstddef> | ||
| 5 | #include <cstdint> | ||
| 6 | #include <span> | ||
| 7 | #include <string> | ||
| 8 | #include <vector> | ||
| 9 | |||
| 10 | #include "chrono_batch_render/bvh/kernels/bvh.h" | ||
| 11 | |||
| 12 | namespace chrono::batch_render::bvh { | ||
| 13 | |||
| 14 | 64 | struct Inspection { | |
| 15 | std::vector<std::string> errors; | ||
| 16 | uint32_t nodes = 0; | ||
| 17 | uint32_t leaves = 0; | ||
| 18 | uint32_t records = 0; | ||
| 19 | uint32_t depth = 0; | ||
| 20 | double sahCost = 0; | ||
| 21 | double nodeCost = 0; | ||
| 22 | double recordCost = 0; | ||
| 23 | double childrenPerNode = 0; | ||
| 24 | double recordsPerLeaf = 0; | ||
| 25 | }; | ||
| 26 | |||
| 27 | Inspection Inspect(std::span<const std::byte> bytes, std::span<const BvhBox> boxes = {}); | ||
| 28 | |||
| 29 | } | ||
| 30 |