|
Blender V5.3
|
#include "kernel/globals.h"#include "kernel/integrator/state.h"#include "kernel/types.h"#include "util/types_rgbe.h"Go to the source code of this file.
Macros | |
| #define | CURVE_SHADOW_TRANSPARENCY_CUTOFF 0.001f |
| #define CURVE_SHADOW_TRANSPARENCY_CUTOFF 0.001f |
Definition at line 218 of file cycles/kernel/bvh/util.h.
Referenced by bvh_shadow_all_anyhit_filter().
| ccl_device_inline float3 intersection_curve_shadow_transparency | ( | KernelGlobals | kg, |
| const int | object, | ||
| const int | prim, | ||
| const int | type, | ||
| const float | u ) |
Definition at line 220 of file cycles/kernel/bvh/util.h.
References ATTR_STD_NOT_FOUND, ATTR_STD_SHADOW_TRANSPARENCY, ccl_device_inline, KernelCurve::first_key, intersection_curve_shadow_transparency(), intersection_find_attribute(), kernel_data_fetch, PRIMITIVE_UNPACK_SEGMENT, RGBE::RGBE(), rgbe_to_rgb(), and zero_float3().
Referenced by bvh_shadow_all_anyhit_filter(), and intersection_curve_shadow_transparency().
| ccl_device_inline int intersection_find_attribute | ( | KernelGlobals | kg, |
| const int | object, | ||
| const uint | id ) |
Definition at line 190 of file cycles/kernel/bvh/util.h.
References ATTR_ELEMENT_NONE, ATTR_PRIM_TYPES, ATTR_STD_NONE, ATTR_STD_NOT_FOUND, ccl_device_inline, AttributeMap::element, AttributeMap::id, intersection_find_attribute(), kernel_data_fetch, AttributeMap::offset, and UNLIKELY.
Referenced by intersection_curve_shadow_transparency(), and intersection_find_attribute().
| ccl_device_forceinline uint intersection_get_object_flags | ( | KernelGlobals | kg, |
| const ccl_private Intersection *ccl_restrict | isect ) |
Definition at line 183 of file cycles/kernel/bvh/util.h.
References ccl_private, ccl_restrict, intersection_get_object_flags(), and kernel_data_fetch.
Referenced by integrator_intersect_next_kernel(), integrator_intersect_next_kernel_after_volume(), intersection_get_object_flags(), and kernel_path_mnee_sample().
| ccl_device_forceinline int intersection_get_shader | ( | KernelGlobals | kg, |
| const ccl_private Intersection *ccl_restrict | isect ) |
Definition at line 176 of file cycles/kernel/bvh/util.h.
References ccl_device_forceinline, ccl_private, ccl_restrict, intersection_get_shader(), and intersection_get_shader_from_isect_prim().
Referenced by integrator_intersect_next_kernel(), integrator_intersect_next_kernel_after_volume(), and intersection_get_shader().
| ccl_device_forceinline int intersection_get_shader_flags | ( | KernelGlobals | kg, |
| const int | prim, | ||
| const int | type ) |
Definition at line 130 of file cycles/kernel/bvh/util.h.
References ccl_device_forceinline, intersection_get_shader_flags(), kernel_data_fetch, PRIMITIVE_ANY_POINT, PRIMITIVE_CURVE, PRIMITIVE_TRIANGLE, and SHADER_MASK.
Referenced by bvh_shadow_all_anyhit_filter(), and intersection_get_shader_flags().
| ccl_device_forceinline int intersection_get_shader_from_isect_prim | ( | KernelGlobals | kg, |
| const int | prim, | ||
| const int | isect_type ) |
Definition at line 153 of file cycles/kernel/bvh/util.h.
References ccl_device_forceinline, intersection_get_shader_from_isect_prim(), kernel_data_fetch, PRIMITIVE_ANY_POINT, PRIMITIVE_CURVE, PRIMITIVE_TRIANGLE, and SHADER_MASK.
Referenced by intersection_get_shader(), and intersection_get_shader_from_isect_prim().
| CCL_NAMESPACE_BEGIN ccl_device_inline bool intersection_ray_valid | ( | const ccl_private Ray * | ray | ) |
Definition at line 14 of file cycles/kernel/bvh/util.h.
References ccl_device_inline, ccl_private, FLT_MAX, intersection_ray_valid(), isfinite_safe(), and len_squared().
Referenced by intersection_ray_valid(), scene_intersect(), and scene_intersect_shadow().
| ccl_device_inline bool intersection_skip_self | ( | const ccl_ray_data RaySelfPrimitives & | self, |
| const int | object, | ||
| const int | prim ) |
Definition at line 244 of file cycles/kernel/bvh/util.h.
References ccl_device_inline, ccl_ray_data, and intersection_skip_self().
Referenced by __anyhit__kernel_optix_visibility_test(), bvh_volume_anyhit_triangle_filter(), and intersection_skip_self().
| ccl_device_inline bool intersection_skip_self_local | ( | const ccl_ray_data RaySelfPrimitives & | self, |
| const int | prim ) |
Definition at line 259 of file cycles/kernel/bvh/util.h.
References ccl_device_inline, ccl_ray_data, and intersection_skip_self_local().
Referenced by __anyhit__kernel_optix_local_hit(), BVH(), intersection_skip_self_local(), kernel_embree_filter_occluded_local_func_impl(), local_intersection_filter(), and motion_triangle_custom_local_intersect().
| ccl_device_inline bool intersection_skip_self_shadow | ( | const ccl_ray_data RaySelfPrimitives & | self, |
| const int | object, | ||
| const int | prim ) |
Definition at line 251 of file cycles/kernel/bvh/util.h.
References ccl_device_inline, ccl_ray_data, and intersection_skip_self_shadow().
Referenced by __anyhit__kernel_optix_visibility_test(), BVH(), BVH(), bvh_shadow_all_anyhit_filter(), closest_intersection_filter(), curve_custom_intersect(), intersection_skip_self_shadow(), kernel_embree_is_self_intersection(), motion_triangle_custom_intersect(), and point_custom_intersect().
| ccl_device_forceinline bool intersection_skip_shadow_already_recoded | ( | IntegratorShadowState | state, |
| const int | object, | ||
| const int | prim, | ||
| const uint | num_hits ) |
Definition at line 301 of file cycles/kernel/bvh/util.h.
References ccl_device_forceinline, INTEGRATOR_SHADOW_ISECT_SIZE, INTEGRATOR_STATE_ARRAY, intersection_skip_shadow_already_recoded(), min, and state.
Referenced by bvh_shadow_all_anyhit_filter(), and intersection_skip_shadow_already_recoded().
| ccl_device_inline bool intersection_skip_shadow_link | ( | KernelGlobals | kg, |
| const ccl_ray_data RaySelfPrimitives & | self, | ||
| const int | isect_object ) |
Definition at line 277 of file cycles/kernel/bvh/util.h.
References ccl_device_inline, ccl_ray_data, intersection_skip_shadow_link(), kernel_data, kernel_data_fetch, KERNEL_FEATURE_SHADOW_LINKING, and LIGHT_LINK_MASK_ALL.
Referenced by __anyhit__kernel_optix_visibility_test(), BVH(), BVH(), bvh_shadow_all_anyhit_filter(), closest_intersection_filter(), curve_custom_intersect(), intersection_skip_shadow_link(), kernel_embree_filter_intersection_func_impl(), and point_custom_intersect().
| ccl_device_forceinline float intersection_t_offset | ( | const float | t | ) |
Definition at line 36 of file cycles/kernel/bvh/util.h.
References __float_as_uint, __uint_as_float, ccl_device_forceinline, FLT_MIN, intersection_t_offset(), isfinite_safe(), and kernel_assert.
Referenced by integrate_light_forward(), integrate_surface_bsdf_bssrdf_bounce(), integrator_volume_stack_update_for_subsurface(), intersection_t_offset(), kernel_path_mnee_sample(), and mnee_newton_solver().
| ccl_device int intersections_compare | ( | const void * | a, |
| const void * | b ) |
Definition at line 89 of file cycles/kernel/bvh/util.h.
References b, ccl_device, intersections_compare(), and Intersection::t.
Referenced by integrator_volume_stack_update_for_subsurface(), and intersections_compare().
| ccl_device_inline float3 ray_offset | ( | const float3 | P, |
| const float3 | Ng ) |
Definition at line 71 of file cycles/kernel/bvh/util.h.
References __float_as_int, __int_as_float, ccl_device_inline, fabsf, make_float3(), make_int3(), P, ray_offset(), float3::x, int3::x, float3::y, int3::y, float3::z, and int3::z.
Referenced by integrate_surface_ray_offset(), and ray_offset().
| ccl_device_inline void sort_intersections_and_normals | ( | ccl_private Intersection * | hits, |
| ccl_private float3 * | Ng, | ||
| uint | num_hits ) |
Definition at line 106 of file cycles/kernel/bvh/util.h.
References ccl_device_inline, ccl_private, and sort_intersections_and_normals().
Referenced by sort_intersections_and_normals().