|
Blender
V2.93
|
Go to the source code of this file.
| ccl_device uint lcg_init | ( | uint | seed | ) |
Definition at line 171 of file kernel_random.h.
References lcg_step_uint(), and seed.
Referenced by lcg_state_init(), and lcg_state_init_addrspace().
| ccl_device_inline uint lcg_state_init | ( | PathState * | state, |
| uint | scramble | ||
| ) |
Definition at line 277 of file kernel_random.h.
References lcg_init(), and state.
| ccl_device_inline uint lcg_state_init_addrspace | ( | ccl_addr_space PathState * | state, |
| uint | scramble | ||
| ) |
Definition at line 282 of file kernel_random.h.
References lcg_init(), and state.
Referenced by shader_eval_surface().
| ccl_device float lcg_step_float | ( | uint * | rng | ) |
Definition at line 164 of file kernel_random.h.
References float().
| ccl_device float lcg_step_float_addrspace | ( | ccl_addr_space uint * | rng | ) |
Definition at line 287 of file kernel_random.h.
References float().
Referenced by bsdf_principled_hair_sample(), mf_eval(), and mf_sample().
| ccl_device uint lcg_step_uint | ( | uint * | rng | ) |
Definition at line 157 of file kernel_random.h.
Referenced by lcg_init().
| ccl_device_inline float path_branched_rng_1D | ( | KernelGlobals * | kg, |
| uint | rng_hash, | ||
| const ccl_addr_space PathState * | state, | ||
| int | branch, | ||
| int | num_branches, | ||
| int | dimension | ||
| ) |
Definition at line 221 of file kernel_random.h.
References kg, path_rng_1D(), and state.
Referenced by path_branched_rng_light_termination().
| ccl_device_inline void path_branched_rng_2D | ( | KernelGlobals * | kg, |
| uint | rng_hash, | ||
| const ccl_addr_space PathState * | state, | ||
| int | branch, | ||
| int | num_branches, | ||
| int | dimension, | ||
| float * | fx, | ||
| float * | fy | ||
| ) |
Definition at line 235 of file kernel_random.h.
References kg, path_rng_2D(), and state.
| ccl_device_inline float path_branched_rng_light_termination | ( | KernelGlobals * | kg, |
| uint | rng_hash, | ||
| const ccl_addr_space PathState * | state, | ||
| int | branch, | ||
| int | num_branches | ||
| ) |
Definition at line 265 of file kernel_random.h.
References kernel_data, kg, path_branched_rng_1D(), PRNG_LIGHT_TERMINATE, and state.
| CCL_NAMESPACE_BEGIN ccl_device_forceinline float path_rng_1D | ( | KernelGlobals * | kg, |
| uint | rng_hash, | ||
| int | sample, | ||
| int | num_samples, | ||
| int | dimension | ||
| ) |
Definition at line 53 of file kernel_random.h.
References cmj_hash_simple(), float(), floorf, kernel_data, kg, pmj_sample_1D(), r, result, blender::compositor::sample(), SAMPLING_PATTERN_CMJ, and SAMPLING_PATTERN_PMJ.
Referenced by kernel_path_trace_setup(), path_branched_rng_1D(), path_rng_2D(), path_state_rng_1D(), and path_state_rng_1D_hash().
| ccl_device_forceinline void path_rng_2D | ( | KernelGlobals * | kg, |
| uint | rng_hash, | ||
| int | sample, | ||
| int | num_samples, | ||
| int | dimension, | ||
| float * | fx, | ||
| float * | fy | ||
| ) |
Definition at line 91 of file kernel_random.h.
References float(), kernel_data, kg, path_rng_1D(), pmj_sample_2D(), blender::compositor::sample(), SAMPLING_PATTERN_CMJ, SAMPLING_PATTERN_PMJ, float2::x, and float2::y.
Referenced by kernel_path_trace_setup(), path_branched_rng_2D(), path_rng_init(), and path_state_rng_2D().
| ccl_device_inline void path_rng_init | ( | KernelGlobals * | kg, |
| int | sample, | ||
| int | num_samples, | ||
| uint * | rng_hash, | ||
| int | x, | ||
| int | y, | ||
| float * | fx, | ||
| float * | fy | ||
| ) |
Definition at line 129 of file kernel_random.h.
References hash_uint2(), kernel_data, kg, path_rng_2D(), PRNG_FILTER_U, blender::compositor::sample(), x, and y.
Referenced by kernel_path_trace_setup().
| ccl_device_inline float path_state_rng_1D | ( | KernelGlobals * | kg, |
| const ccl_addr_space PathState * | state, | ||
| int | dimension | ||
| ) |
Definition at line 187 of file kernel_random.h.
References kg, path_rng_1D(), and state.
Referenced by kernel_holdout_emission_blurring_pathtermination_ao(), kernel_path_integrate(), path_state_rng_light_termination(), and subsurface_random_walk().
| ccl_device_inline float path_state_rng_1D_hash | ( | KernelGlobals * | kg, |
| const ccl_addr_space PathState * | state, | ||
| uint | hash | ||
| ) |
Definition at line 207 of file kernel_random.h.
References cmj_hash_simple(), hash, kg, path_rng_1D(), and state.
| ccl_device_inline void path_state_rng_2D | ( | KernelGlobals * | kg, |
| const ccl_addr_space PathState * | state, | ||
| int | dimension, | ||
| float * | fx, | ||
| float * | fy | ||
| ) |
Definition at line 195 of file kernel_random.h.
References kg, path_rng_2D(), and state.
Referenced by kernel_direct_lighting(), kernel_path_ao(), kernel_path_surface_bounce(), kernel_path_surface_connect_light(), and subsurface_random_walk().
| ccl_device_inline float path_state_rng_light_termination | ( | KernelGlobals * | kg, |
| const ccl_addr_space PathState * | state | ||
| ) |
Definition at line 256 of file kernel_random.h.
References kernel_data, kg, path_state_rng_1D(), PRNG_LIGHT_TERMINATE, and state.
Referenced by kernel_direct_lighting(), and kernel_path_surface_connect_light().
| ccl_device_inline bool sample_is_even | ( | int | pattern, |
| int | sample | ||
| ) |
Definition at line 294 of file kernel_random.h.
References blender::compositor::sample(), and SAMPLING_PATTERN_PMJ.
Referenced by kernel_write_result().