mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
+ | New topbvh stats
This commit is contained in:
@ -19,6 +19,13 @@ struct GPUBvhData;
|
||||
struct GPUTopBvh;
|
||||
struct AABB;
|
||||
|
||||
struct TopBVHStats
|
||||
{
|
||||
int min_bvh;
|
||||
int max_bvh;
|
||||
float average_bvh;
|
||||
};
|
||||
|
||||
class TopBVH
|
||||
{
|
||||
public:
|
||||
@ -30,16 +37,12 @@ class TopBVH
|
||||
float evaluateSah(std::vector<GPUBvhData> &bvhs_data, std::vector<GPUBvh> &bvhs, int axis, float pos);
|
||||
|
||||
int getSize();
|
||||
// int getLeaves();
|
||||
int getLeaves();
|
||||
|
||||
// void flatten(std::vector<GPUTopBvh> &TopBVHs, int ¤tIndex);
|
||||
// GPUTopBvh toGPUTopBvh();
|
||||
std::vector<GPUTopBvh> getGPUTopBvhs();
|
||||
void flatten(std::vector<GPUTopBvh> &top_bvhs, int ¤tIndex);
|
||||
|
||||
// const AABB &getAABB() const;
|
||||
// std::vector<GPUTopBvh> getGPUTopBvhs();
|
||||
|
||||
TopBVHStats analyzeBVHLeaves();
|
||||
|
||||
private:
|
||||
AABB _aabb;
|
||||
|
Reference in New Issue
Block a user