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>2015-06-11 11:42:38 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-06-11 15:53:15 +0300
commit2bd6de5bbb1381fa34bf4df59d9f134dd9ccce91 (patch)
tree9b096f3832f858a939631656ca564ab903d4ee9e /intern/cycles/kernel/kernel_types.h
parent3438130a94ade30b64e0b33095339a96c0c933cd (diff)
Cycles: Add debug pass showing average number of ray bounces per pixel
Quite straightforward implementation, but still needs some work for the split kernel. Includes both regular and split kernel implementation for that. The pass is not exposed to the interface yet because it's currently not really easy to have same pass listed in the menu multiple times.
Diffstat (limited to 'intern/cycles/kernel/kernel_types.h')
-rw-r--r--intern/cycles/kernel/kernel_types.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_types.h b/intern/cycles/kernel/kernel_types.h
index 1ef07629a3e..67e41a5ee81 100644
--- a/intern/cycles/kernel/kernel_types.h
+++ b/intern/cycles/kernel/kernel_types.h
@@ -337,6 +337,7 @@ typedef enum PassType {
PASS_LIGHT = (1 << 25), /* no real pass, used to force use_light_pass */
#ifdef __KERNEL_DEBUG__
PASS_BVH_TRAVERSAL_STEPS = (1 << 26),
+ PASS_RAY_BOUNCES = (1 << 27),
#endif
} PassType;
@@ -848,7 +849,8 @@ typedef struct KernelFilm {
#ifdef __KERNEL_DEBUG__
int pass_bvh_traversal_steps;
- int pass_pad3, pass_pad4, pass_pad5;
+ int pass_ray_bounces;
+ int pass_pad3, pass_pad4;
#endif
} KernelFilm;
@@ -987,6 +989,7 @@ typedef ccl_addr_space struct DebugData {
// Total number of BVH node traversal steps and primitives intersections
// for the camera rays.
int num_bvh_traversal_steps;
+ int num_ray_bounces;
} DebugData;
#endif