From e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 17 Apr 2019 06:17:24 +0200 Subject: ClangFormat: apply to source, most of intern Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat --- intern/cycles/bvh/bvh2.h | 75 ++++++++++++++++++++++++------------------------ 1 file changed, 38 insertions(+), 37 deletions(-) (limited to 'intern/cycles/bvh/bvh2.h') diff --git a/intern/cycles/bvh/bvh2.h b/intern/cycles/bvh/bvh2.h index 6afa6c21796..c6a4e6fa73a 100644 --- a/intern/cycles/bvh/bvh2.h +++ b/intern/cycles/bvh/bvh2.h @@ -34,8 +34,8 @@ class LeafNode; class Object; class Progress; -#define BVH_NODE_SIZE 4 -#define BVH_NODE_LEAF_SIZE 1 +#define BVH_NODE_SIZE 4 +#define BVH_NODE_LEAF_SIZE 1 #define BVH_UNALIGNED_NODE_SIZE 7 /* BVH2 @@ -43,48 +43,49 @@ class Progress; * Typical BVH with each node having two children. */ class BVH2 : public BVH { -protected: - /* constructor */ - friend class BVH; - BVH2(const BVHParams& params, const vector& objects); + protected: + /* constructor */ + friend class BVH; + BVH2(const BVHParams ¶ms, const vector &objects); - /* Building process. */ - virtual BVHNode *widen_children_nodes(const BVHNode *root) override; + /* Building process. */ + virtual BVHNode *widen_children_nodes(const BVHNode *root) override; - /* pack */ - void pack_nodes(const BVHNode *root) override; + /* pack */ + void pack_nodes(const BVHNode *root) override; - void pack_leaf(const BVHStackEntry& e, - const LeafNode *leaf); - void pack_inner(const BVHStackEntry& e, - const BVHStackEntry& e0, - const BVHStackEntry& e1); + void pack_leaf(const BVHStackEntry &e, const LeafNode *leaf); + void pack_inner(const BVHStackEntry &e, const BVHStackEntry &e0, const BVHStackEntry &e1); - void pack_aligned_inner(const BVHStackEntry& e, - const BVHStackEntry& e0, - const BVHStackEntry& e1); - void pack_aligned_node(int idx, - const BoundBox& b0, - const BoundBox& b1, - int c0, int c1, - uint visibility0, uint visibility1); + void pack_aligned_inner(const BVHStackEntry &e, + const BVHStackEntry &e0, + const BVHStackEntry &e1); + void pack_aligned_node(int idx, + const BoundBox &b0, + const BoundBox &b1, + int c0, + int c1, + uint visibility0, + uint visibility1); - void pack_unaligned_inner(const BVHStackEntry& e, - const BVHStackEntry& e0, - const BVHStackEntry& e1); - void pack_unaligned_node(int idx, - const Transform& aligned_space0, - const Transform& aligned_space1, - const BoundBox& b0, - const BoundBox& b1, - int c0, int c1, - uint visibility0, uint visibility1); + void pack_unaligned_inner(const BVHStackEntry &e, + const BVHStackEntry &e0, + const BVHStackEntry &e1); + void pack_unaligned_node(int idx, + const Transform &aligned_space0, + const Transform &aligned_space1, + const BoundBox &b0, + const BoundBox &b1, + int c0, + int c1, + uint visibility0, + uint visibility1); - /* refit */ - void refit_nodes() override; - void refit_node(int idx, bool leaf, BoundBox& bbox, uint& visibility); + /* refit */ + void refit_nodes() override; + void refit_node(int idx, bool leaf, BoundBox &bbox, uint &visibility); }; CCL_NAMESPACE_END -#endif /* __BVH2_H__ */ +#endif /* __BVH2_H__ */ -- cgit v1.2.3