|
Blender
V2.93
|
Go to the source code of this file.
Functions | |
| CCL_NAMESPACE_BEGIN ccl_device_inline void | path_state_init (KernelGlobals *kg, ShaderData *stack_sd, ccl_addr_space PathState *state, uint rng_hash, int sample, ccl_addr_space Ray *ray) |
| ccl_device_inline void | path_state_next (KernelGlobals *kg, ccl_addr_space PathState *state, int label) |
| ccl_device_inline uint | path_state_ray_visibility (KernelGlobals *kg, ccl_addr_space PathState *state) |
| ccl_device_inline float | path_state_continuation_probability (KernelGlobals *kg, ccl_addr_space PathState *state, const float3 throughput) |
| ccl_device_inline void | path_state_modify_bounce (ccl_addr_space PathState *state, bool increase) |
| ccl_device_inline bool | path_state_ao_bounce (KernelGlobals *kg, ccl_addr_space PathState *state) |
| ccl_device_inline void | path_state_branch (ccl_addr_space PathState *state, int branch, int num_branches) |
| ccl_device_inline bool path_state_ao_bounce | ( | KernelGlobals * | kg, |
| ccl_addr_space PathState * | state | ||
| ) |
Definition at line 253 of file kernel_path_state.h.
References kernel_data, and state.
Referenced by kernel_indirect_background(), kernel_path_background(), kernel_path_integrate(), and kernel_path_scene_intersect().
| ccl_device_inline void path_state_branch | ( | ccl_addr_space PathState * | state, |
| int | branch, | ||
| int | num_branches | ||
| ) |
Definition at line 263 of file kernel_path_state.h.
References state.
| ccl_device_inline float path_state_continuation_probability | ( | KernelGlobals * | kg, |
| ccl_addr_space PathState * | state, | ||
| const float3 | throughput | ||
| ) |
Definition at line 205 of file kernel_path_state.h.
References fabs(), kernel_data, max3(), min, PATH_RAY_SHADOW_CATCHER, PATH_RAY_TERMINATE_IMMEDIATE, PATH_RAY_TRANSPARENT, sqrtf, and state.
Referenced by kernel_holdout_emission_blurring_pathtermination_ao(), and kernel_path_integrate().
| CCL_NAMESPACE_BEGIN ccl_device_inline void path_state_init | ( | KernelGlobals * | kg, |
| ShaderData * | stack_sd, | ||
| ccl_addr_space PathState * | state, | ||
| uint | rng_hash, | ||
| int | sample, | ||
| ccl_addr_space Ray * | ray | ||
| ) |
Definition at line 19 of file kernel_path_state.h.
References kernel_data, kg, one_float3(), PATH_RAY_CAMERA, PATH_RAY_MIS_SKIP, PATH_RAY_STORE_SHADOW_INFO, PATH_RAY_TRANSPARENT_BACKGROUND, PRNG_BASE_NUM, blender::compositor::sample(), SHADER_NONE, state, and zero_float3().
Referenced by kernel_buffer_update(), kernel_path_init(), and kernel_path_trace().
| ccl_device_inline void path_state_modify_bounce | ( | ccl_addr_space PathState * | state, |
| bool | increase | ||
| ) |
Definition at line 244 of file kernel_path_state.h.
References state.
Referenced by direct_emissive_eval(), indirect_background(), and shadow_handle_transparent_isect().
| ccl_device_inline void path_state_next | ( | KernelGlobals * | kg, |
| ccl_addr_space PathState * | state, | ||
| int | label | ||
| ) |
Definition at line 72 of file kernel_path_state.h.
References kernel_assert, kernel_data, label, LABEL_DIFFUSE, LABEL_GLOSSY, LABEL_REFLECT, LABEL_SINGULAR, LABEL_TRANSMIT, LABEL_TRANSMIT_TRANSPARENT, LABEL_TRANSPARENT, LABEL_VOLUME_SCATTER, PATH_RAY_ALL_VISIBILITY, PATH_RAY_DIFFUSE, PATH_RAY_DIFFUSE_ANCESTOR, PATH_RAY_GLOSSY, PATH_RAY_MIS_SKIP, PATH_RAY_REFLECT, PATH_RAY_SHADOW_CATCHER, PATH_RAY_SINGULAR, PATH_RAY_STORE_SHADOW_INFO, PATH_RAY_TERMINATE_AFTER_TRANSPARENT, PATH_RAY_TERMINATE_IMMEDIATE, PATH_RAY_TRANSMIT, PATH_RAY_TRANSPARENT, PATH_RAY_TRANSPARENT_BACKGROUND, PATH_RAY_VOLUME_SCATTER, PRNG_BOUNCE_NUM, and state.
Referenced by kernel_path_surface_bounce().
| ccl_device_inline uint path_state_ray_visibility | ( | KernelGlobals * | kg, |
| ccl_addr_space PathState * | state | ||
| ) |
Definition at line 190 of file kernel_path_state.h.
References PATH_RAY_ALL_VISIBILITY, PATH_RAY_DIFFUSE, PATH_RAY_GLOSSY, PATH_RAY_TRANSMIT, PATH_RAY_VOLUME_SCATTER, and state.
Referenced by kernel_path_scene_intersect().