Code cleanup: store branch factor in PathState.
[blender.git] / intern / cycles / kernel / kernel_types.h
index e3d2ae15f5cef096f8c9bdb4062a03da86b0ca76..1b4e926ca2872b1695d52fa378376246324d06f0 100644 (file)
@@ -1008,9 +1008,10 @@ typedef struct PathState {
 
        /* random number generator state */
        uint rng_hash;          /* per pixel hash */
-       int rng_offset;                 /* dimension offset */
-       int sample;                     /* path sample number */
-       int num_samples;                /* total number of times this path will be sampled */
+       int rng_offset;         /* dimension offset */
+       int sample;             /* path sample number */
+       int num_samples;        /* total number of times this path will be sampled */
+       float branch_factor;    /* number of branches in indirect paths */
 
        /* bounce counting */
        int bounce;