chrono_batch_render/
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
1 / 1
100.0%
Branches:
1 / 2
50.0%
Functions:
-
-%

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
1/2
✗ Branch 6 not taken.
✓ Branch 7 taken 1 time.
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