Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-04-13 11:29:14 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-04-13 11:29:14 +0300
commitc8548871ac56ecbfe66a729933d3a99c798bd741 (patch)
treea24b1e2b8f314ad9dc6db73e3e42f9cdd0b3b723 /intern/cycles/bvh/bvh.h
parented5c3121f514389428234e9106926ff67eb366bc (diff)
Cycles: Use more explicit and commonly used names for BVH structures
This renames BinaryBVH to BVH2 and QBVH to BVH8. There is no user measurable difference, but allows us to add more types of BVH trees such as BVH8.
Diffstat (limited to 'intern/cycles/bvh/bvh.h')
-rw-r--r--intern/cycles/bvh/bvh.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/intern/cycles/bvh/bvh.h b/intern/cycles/bvh/bvh.h
index 60bc62ee6e4..8e664e67dc5 100644
--- a/intern/cycles/bvh/bvh.h
+++ b/intern/cycles/bvh/bvh.h
@@ -110,15 +110,15 @@ protected:
virtual void refit_nodes() = 0;
};
-/* Binary BVH
+/* BVH2
*
* Typical BVH with each node having two children. */
-class BinaryBVH : public BVH {
+class BVH2 : public BVH {
protected:
/* constructor */
friend class BVH;
- BinaryBVH(const BVHParams& params, const vector<Object*>& objects);
+ BVH2(const BVHParams& params, const vector<Object*>& objects);
/* pack */
void pack_nodes(const BVHNode *root);
@@ -154,15 +154,15 @@ protected:
void refit_node(int idx, bool leaf, BoundBox& bbox, uint& visibility);
};
-/* QBVH
+/* BVH4
*
* Quad BVH, with each node having four children, to use with SIMD instructions. */
-class QBVH : public BVH {
+class BVH4 : public BVH {
protected:
/* constructor */
friend class BVH;
- QBVH(const BVHParams& params, const vector<Object*>& objects);
+ BVH4(const BVHParams& params, const vector<Object*>& objects);
/* pack */
void pack_nodes(const BVHNode *root);