Blender V2.61 - r43446
|
#include <bvh_params.h>
Public Types | |
enum | { MAX_DEPTH = 64, MAX_SPATIAL_DEPTH = 48, NUM_SPATIAL_BINS = 32 } |
Public Member Functions | |
BVHParams () | |
float | cost (int num_nodes, int num_tris) const |
float | triangle_cost (int n) const |
float | node_cost (int n) const |
Public Attributes | |
int | use_spatial_split |
float | spatial_split_alpha |
float | sah_node_cost |
float | sah_triangle_cost |
int | min_leaf_size |
int | max_leaf_size |
int | top_level |
int | use_cache |
int | use_qbvh |
int | pad |
Definition at line 25 of file bvh_params.h.
anonymous enum |
Definition at line 52 of file bvh_params.h.
BVHParams::BVHParams | ( | ) | [inline] |
Definition at line 58 of file bvh_params.h.
References credits_svn_gen::e, max_leaf_size, min_leaf_size, pad, sah_node_cost, sah_triangle_cost, spatial_split_alpha, top_level, use_cache, use_qbvh, and use_spatial_split.
float BVHParams::cost | ( | int | num_nodes, |
int | num_tris | ||
) | const [inline] |
Definition at line 76 of file bvh_params.h.
References node_cost(), and triangle_cost().
Referenced by BVHNode::computeSubtreeSAHCost().
float BVHParams::node_cost | ( | int | n | ) | const [inline] |
Definition at line 82 of file bvh_params.h.
References sah_node_cost.
Referenced by BVHBuild::build_node(), and cost().
float BVHParams::triangle_cost | ( | int | n | ) | const [inline] |
Definition at line 79 of file bvh_params.h.
References sah_triangle_cost.
Referenced by BVHBuild::build_node(), cost(), BVHBuild::do_spatial_split(), BVHBuild::find_object_split(), and BVHBuild::find_spatial_split().
Definition at line 38 of file bvh_params.h.
Referenced by BVHBuild::build_node(), and BVHParams().
Definition at line 37 of file bvh_params.h.
Referenced by BVHBuild::build_node(), and BVHParams().
int BVHParams::pad |
Definition at line 49 of file bvh_params.h.
Referenced by BVHParams().
float BVHParams::sah_node_cost |
Definition at line 33 of file bvh_params.h.
Referenced by BVHParams(), and node_cost().
Definition at line 34 of file bvh_params.h.
Referenced by BVHParams(), and triangle_cost().
Definition at line 30 of file bvh_params.h.
Referenced by BVHParams(), and BVHBuild::run().
Definition at line 41 of file bvh_params.h.
Referenced by BVHBuild::add_references(), BVH::build(), BVHParams(), MeshManager::device_update_bvh(), RegularBVH::pack_nodes(), QBVH::pack_nodes(), RegularBVH::refit_node(), RegularBVH::refit_nodes(), and BVHBuild::run().
Definition at line 44 of file bvh_params.h.
Referenced by BVH::build(), BVHParams(), Mesh::compute_bvh(), and MeshManager::device_update_bvh().
Definition at line 47 of file bvh_params.h.
Referenced by BVHParams(), Mesh::compute_bvh(), BVH::create(), MeshManager::device_update_bvh(), BVH::pack_instances(), and QBVH::QBVH().
Definition at line 29 of file bvh_params.h.
Referenced by BVHBuild::build_node(), BVHParams(), Mesh::compute_bvh(), MeshManager::device_update_bvh(), and BVHBuild::run().