|
Blender V5.0
|
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 216 of file cycles/kernel/bvh/util.h.
Referenced by __anyhit__kernel_optix_shadow_all_hit(), BVH(), and kernel_embree_filter_occluded_shadow_all_func_impl().
| ccl_device_inline float intersection_curve_shadow_transparency | ( | KernelGlobals | kg, |
| const int | object, | ||
| const int | prim, | ||
| const int | type, | ||
| const float | u ) |
Definition at line 218 of file cycles/kernel/bvh/util.h.
References ATTR_STD_NOT_FOUND, ATTR_STD_SHADOW_TRANSPARENCY, ccl_device_inline, KernelCurve::first_key, intersection_find_attribute(), kernel_data_fetch, and PRIMITIVE_UNPACK_SEGMENT.
Referenced by __anyhit__kernel_optix_shadow_all_hit(), BVH(), and kernel_embree_filter_occluded_shadow_all_func_impl().
| ccl_device_inline int intersection_find_attribute | ( | KernelGlobals | kg, |
| const int | object, | ||
| const uint | id ) |
Definition at line 188 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, kernel_data_fetch, AttributeMap::offset, and UNLIKELY.
Referenced by intersection_curve_shadow_transparency(), motion_triangle_normals(), and motion_triangle_vertices().
| ccl_device_forceinline int intersection_get_object_flags | ( | KernelGlobals | kg, |
| const ccl_private Intersection *ccl_restrict | isect ) |
Definition at line 180 of file cycles/kernel/bvh/util.h.
References ccl_device_forceinline, ccl_private, ccl_restrict, and kernel_data_fetch.
Referenced by integrator_intersect_next_kernel(), integrator_intersect_next_kernel_after_volume(), and kernel_path_mnee_sample().
| ccl_device_forceinline int intersection_get_shader | ( | KernelGlobals | kg, |
| const ccl_private Intersection *ccl_restrict | isect ) |
Definition at line 174 of file cycles/kernel/bvh/util.h.
References ccl_device_forceinline, ccl_private, ccl_restrict, and intersection_get_shader_from_isect_prim().
Referenced by integrator_intersect_next_kernel(), and integrator_intersect_next_kernel_after_volume().
| ccl_device_forceinline int intersection_get_shader_flags | ( | KernelGlobals | kg, |
| const int | prim, | ||
| const int | type ) |
Definition at line 128 of file cycles/kernel/bvh/util.h.
References ccl_device_forceinline, kernel_data_fetch, PRIMITIVE_CURVE, PRIMITIVE_POINT, PRIMITIVE_TRIANGLE, and SHADER_MASK.
Referenced by __anyhit__kernel_optix_shadow_all_hit(), BVH(), and kernel_embree_filter_occluded_shadow_all_func_impl().
| ccl_device_forceinline int intersection_get_shader_from_isect_prim | ( | KernelGlobals | kg, |
| const int | prim, | ||
| const int | isect_type ) |
Definition at line 151 of file cycles/kernel/bvh/util.h.
References ccl_device_forceinline, kernel_data_fetch, PRIMITIVE_CURVE, PRIMITIVE_POINT, PRIMITIVE_TRIANGLE, and SHADER_MASK.
Referenced by intersection_get_shader().
| CCL_NAMESPACE_BEGIN ccl_device_inline bool intersection_ray_valid | ( | const ccl_private Ray * | ray | ) |
Definition at line 13 of file cycles/kernel/bvh/util.h.
References ccl_device_inline, ccl_private, isfinite_safe(), and len_squared().
Referenced by 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 239 of file cycles/kernel/bvh/util.h.
References ccl_device_inline, ccl_ray_data, and self.
Referenced by __anyhit__kernel_optix_visibility_test(), __anyhit__kernel_optix_volume_test(), BVH(), BVH(), and kernel_embree_filter_occluded_volume_all_func_impl().
| ccl_device_inline bool intersection_skip_self_local | ( | const ccl_ray_data RaySelfPrimitives & | self, |
| const int | prim ) |
Definition at line 254 of file cycles/kernel/bvh/util.h.
References ccl_device_inline, ccl_ray_data, and self.
Referenced by __anyhit__kernel_optix_local_hit(), BVH(), and kernel_embree_filter_occluded_local_func_impl().
| ccl_device_inline bool intersection_skip_self_shadow | ( | const ccl_ray_data RaySelfPrimitives & | self, |
| const int | object, | ||
| const int | prim ) |
Definition at line 246 of file cycles/kernel/bvh/util.h.
References ccl_device_inline, ccl_ray_data, and self.
Referenced by __anyhit__kernel_optix_shadow_all_hit(), __anyhit__kernel_optix_visibility_test(), BVH(), BVH(), kernel_embree_filter_occluded_shadow_all_func_impl(), and kernel_embree_is_self_intersection().
| ccl_device_forceinline bool intersection_skip_shadow_already_recoded | ( | IntegratorShadowState | state, |
| const int | object, | ||
| const int | prim, | ||
| const int | num_hits ) |
Definition at line 296 of file cycles/kernel/bvh/util.h.
References ccl_device_forceinline, i, INTEGRATOR_SHADOW_ISECT_SIZE, INTEGRATOR_STATE_ARRAY, min, and state.
Referenced by BVH(), and kernel_embree_filter_occluded_shadow_all_func_impl().
| ccl_device_inline bool intersection_skip_shadow_link | ( | KernelGlobals | kg, |
| const ccl_ray_data RaySelfPrimitives & | self, | ||
| const int | isect_object ) |
Definition at line 272 of file cycles/kernel/bvh/util.h.
References ccl_device_inline, ccl_ray_data, kernel_data, kernel_data_fetch, KERNEL_FEATURE_SHADOW_LINKING, LIGHT_LINK_MASK_ALL, and self.
Referenced by __anyhit__kernel_optix_shadow_all_hit(), __anyhit__kernel_optix_visibility_test(), BVH(), BVH(), kernel_embree_filter_intersection_func_impl(), and kernel_embree_filter_occluded_shadow_all_func_impl().
| ccl_device_forceinline float intersection_t_offset | ( | const float | t | ) |
Definition at line 34 of file cycles/kernel/bvh/util.h.
References __float_as_uint, __uint_as_float, ccl_device_forceinline, isfinite_safe(), kernel_assert, and result.
Referenced by integrate_light(), integrate_surface_bsdf_bssrdf_bounce(), integrator_volume_stack_update_for_subsurface(), kernel_path_mnee_sample(), and mnee_newton_solver().
| ccl_device int intersections_compare | ( | const void * | a, |
| const void * | b ) |
Definition at line 87 of file cycles/kernel/bvh/util.h.
References b, ccl_device, and Intersection::t.
Referenced by integrator_volume_stack_update_for_subsurface().
| ccl_device_inline float3 ray_offset | ( | const float3 | P, |
| const float3 | Ng ) |
Definition at line 69 of file cycles/kernel/bvh/util.h.
References __float_as_int, __int_as_float, ccl_device_inline, fabsf, make_float3(), make_int3(), P, float3::x, int3::x, float3::y, int3::y, float3::z, and int3::z.
Referenced by integrate_surface_ray_offset().
| ccl_device_inline void sort_intersections_and_normals | ( | ccl_private Intersection * | hits, |
| ccl_private float3 * | Ng, | ||
| uint | num_hits ) |
Definition at line 104 of file cycles/kernel/bvh/util.h.
References ccl_device_inline, and ccl_private.