|
Blender V5.3
|
#include <embree4/rtcore_geometry.h>#include <embree4/rtcore_ray.h>#include <embree4/rtcore_scene.h>#include "kernel/device/cpu/compat.h"#include "kernel/device/cpu/globals.h"#include "kernel/bvh/intersect_filter.h"#include "kernel/bvh/types.h"#include "kernel/bvh/util.h"#include "kernel/geom/gsplat_intersect.h"#include "kernel/geom/object.h"#include "kernel/integrator/state.h"#include "kernel/integrator/state_util.h"#include "kernel/sample/lcg.h"Go to the source code of this file.
Classes | |
| struct | CCLFirstHitContext |
| struct | CCLShadowContext |
| struct | CCLLocalContext |
| struct | CCLVolumeContext |
Typedefs | |
| using | numhit_t = uint32_t |
| #define CYCLES_EMBREE_USED_FEATURES |
Definition at line 52 of file kernel/device/cpu/bvh.h.
Referenced by kernel_embree_intersect().
| #define EMBREE_IS_HAIR | ( | x | ) |
Definition at line 61 of file kernel/device/cpu/bvh.h.
Referenced by kernel_embree_filter_occluded_local_func_impl().
| #define kernel_embree_custom_intersection_func kernel_embree_custom_intersection_func_impl |
Definition at line 659 of file kernel/device/cpu/bvh.h.
Referenced by kernel_embree_intersect().
| #define kernel_embree_custom_occluded_func kernel_embree_custom_occluded_func_impl |
Definition at line 660 of file kernel/device/cpu/bvh.h.
| #define kernel_embree_custom_occluded_local_func kernel_embree_custom_occluded_local_func_impl |
Definition at line 661 of file kernel/device/cpu/bvh.h.
| #define kernel_embree_custom_occluded_volume_func kernel_embree_custom_occluded_volume_func_impl |
Definition at line 662 of file kernel/device/cpu/bvh.h.
| #define kernel_embree_filter_intersection_func kernel_embree_filter_intersection_func_impl |
Definition at line 653 of file kernel/device/cpu/bvh.h.
Referenced by kernel_embree_intersect().
| #define kernel_embree_filter_occluded_local_func kernel_embree_filter_occluded_local_func_impl |
Definition at line 656 of file kernel/device/cpu/bvh.h.
| #define kernel_embree_filter_occluded_shadow_all_func kernel_embree_filter_occluded_shadow_all_func_impl |
Definition at line 654 of file kernel/device/cpu/bvh.h.
| #define kernel_embree_filter_occluded_volume_all_func kernel_embree_filter_occluded_volume_all_func_impl |
Definition at line 657 of file kernel/device/cpu/bvh.h.
| #define rtcGetGeometryUserDataFromTraversable rtcGetGeometryUserDataFromScene |
Definition at line 43 of file kernel/device/cpu/bvh.h.
| #define RTCTraversable RTCScene |
Definition at line 42 of file kernel/device/cpu/bvh.h.
| #define rtcTraversableIntersect1 rtcIntersect1 |
Definition at line 44 of file kernel/device/cpu/bvh.h.
Referenced by kernel_embree_intersect().
| #define rtcTraversableOccluded1 rtcOccluded1 |
Definition at line 45 of file kernel/device/cpu/bvh.h.
| using numhit_t = uint32_t |
Definition at line 35 of file kernel/device/cpu/bvh.h.
| ccl_device_forceinline int custom_intersect_get_object | ( | const RTCRayQueryContext & | ctx, |
| unsigned int | geom_id ) |
Definition at line 230 of file kernel/device/cpu/bvh.h.
References ccl_device_forceinline, and custom_intersect_get_object().
Referenced by custom_intersect_get_object(), kernel_embree_custom_intersection_func_impl(), and kernel_embree_custom_occluded_func_impl().
| ccl_device_inline void kernel_embree_convert_hit | ( | KernelGlobals | kg, |
| const RTCRay * | ray, | ||
| const RTCHit * | hit, | ||
| Intersection * | isect ) |
Definition at line 156 of file kernel/device/cpu/bvh.h.
References ccl_device_inline, kernel_data_fetch, kernel_embree_convert_hit(), kernel_embree_get_hit_object(), Intersection::object, Intersection::prim, Intersection::t, Intersection::type, Intersection::u, and Intersection::v.
Referenced by kernel_embree_convert_hit(), kernel_embree_filter_occluded_local_func_impl(), kernel_embree_filter_occluded_shadow_all_func_impl(), kernel_embree_filter_occluded_volume_all_func_impl(), and kernel_embree_intersect().
| ccl_device_inline void kernel_embree_convert_sss_hit | ( | KernelGlobals | kg, |
| const RTCRay * | ray, | ||
| const RTCHit * | hit, | ||
| Intersection * | isect, | ||
| const int | object ) |
Definition at line 183 of file kernel/device/cpu/bvh.h.
References ccl_device_inline, kernel_data_fetch, kernel_embree_convert_sss_hit(), Intersection::object, Intersection::prim, Intersection::t, Intersection::type, Intersection::u, and Intersection::v.
Referenced by kernel_embree_convert_sss_hit(), and kernel_embree_filter_occluded_local_func_impl().
| ccl_device_forceinline void kernel_embree_custom_intersection_func_impl | ( | const RTCIntersectFunctionNArguments * | args | ) |
Definition at line 236 of file kernel/device/cpu/bvh.h.
References ccl_device_forceinline, custom_intersect_get_object(), kernel_assert, kernel_data_fetch, kernel_embree_custom_intersection_func_impl(), kernel_embree_filter_intersection_func_impl(), CCLFirstHitContext::kg, make_float3(), PRIMITIVE_GSPLAT, and CCLFirstHitContext::ray.
Referenced by kernel_embree_custom_intersection_func_impl().
| ccl_device_forceinline void kernel_embree_custom_occluded_func_impl | ( | const RTCOccludedFunctionNArguments * | args | ) |
Definition at line 315 of file kernel/device/cpu/bvh.h.
References bvh_shadow_all_anyhit_filter(), ccl_device_forceinline, custom_intersect_get_object(), FLT_MAX, kernel_assert, kernel_data_fetch, kernel_embree_custom_occluded_func_impl(), CCLShadowContext::kg, make_float3(), CCLShadowContext::payload, PRIMITIVE_GSPLAT, and zero_float3().
Referenced by kernel_embree_custom_occluded_func_impl().
| ccl_device_forceinline void kernel_embree_custom_occluded_local_func_impl | ( | const RTCOccludedFunctionNArguments * | args | ) |
Definition at line 379 of file kernel/device/cpu/bvh.h.
References ccl_device_forceinline, kernel_assert, and kernel_embree_custom_occluded_local_func_impl().
Referenced by kernel_embree_custom_occluded_local_func_impl().
| ccl_device_forceinline void kernel_embree_custom_occluded_volume_func_impl | ( | const RTCOccludedFunctionNArguments * | args | ) |
Definition at line 390 of file kernel/device/cpu/bvh.h.
References ccl_device_forceinline, kernel_assert, and kernel_embree_custom_occluded_volume_func_impl().
Referenced by kernel_embree_custom_occluded_volume_func_impl().
| ccl_device_forceinline void kernel_embree_filter_intersection_func_impl | ( | const RTCFilterFunctionNArguments * | args | ) |
Definition at line 202 of file kernel/device/cpu/bvh.h.
References ccl_device_forceinline, intersection_skip_shadow_link(), kernel_assert, kernel_embree_filter_intersection_func_impl(), kernel_embree_get_hit_object(), kernel_embree_is_self_intersection(), CCLFirstHitContext::kg, CCLFirstHitContext::ray, and Ray::self.
Referenced by kernel_embree_custom_intersection_func_impl(), and kernel_embree_filter_intersection_func_impl().
| ccl_device_forceinline void kernel_embree_filter_occluded_local_func_impl | ( | const RTCFilterFunctionNArguments * | args | ) |
Definition at line 436 of file kernel/device/cpu/bvh.h.
References ccl_device_forceinline, EMBREE_IS_HAIR, LocalIntersection::hits, intersection_skip_self_local(), CCLLocalContext::is_sss, kernel_assert, kernel_embree_convert_hit(), kernel_embree_convert_sss_hit(), kernel_embree_filter_occluded_local_func_impl(), CCLLocalContext::kg, CCLLocalContext::lcg_state, lcg_step_uint(), CCLLocalContext::local_isect, CCLLocalContext::local_object_id, make_float3(), CCLLocalContext::max_hits, min, LocalIntersection::Ng, normalize, LocalIntersection::num_hits, Intersection::object, Intersection::prim, CCLLocalContext::ray, Ray::self, and Intersection::t.
Referenced by kernel_embree_filter_occluded_local_func_impl().
| ccl_device_forceinline void kernel_embree_filter_occluded_shadow_all_func_impl | ( | const RTCFilterFunctionNArguments * | args | ) |
Definition at line 406 of file kernel/device/cpu/bvh.h.
References bvh_shadow_all_anyhit_filter(), ccl_device_forceinline, kernel_assert, kernel_embree_convert_hit(), kernel_embree_filter_occluded_shadow_all_func_impl(), CCLShadowContext::kg, and CCLShadowContext::payload.
Referenced by kernel_embree_filter_occluded_shadow_all_func_impl().
| ccl_device_forceinline void kernel_embree_filter_occluded_volume_all_func_impl | ( | const RTCFilterFunctionNArguments * | args | ) |
Definition at line 529 of file kernel/device/cpu/bvh.h.
References bvh_volume_anyhit_triangle_filter(), ccl_device_forceinline, kernel_assert, kernel_embree_convert_hit(), kernel_embree_filter_occluded_volume_all_func_impl(), CCLVolumeContext::kg, CCLVolumeContext::num_hits, Intersection::object, Intersection::prim, CCLVolumeContext::ray, Ray::self, and CCLVolumeContext::vol_isect.
Referenced by kernel_embree_filter_occluded_volume_all_func_impl().
| ccl_device_inline int kernel_embree_get_hit_object | ( | const RTCHit * | hit | ) |
Definition at line 128 of file kernel/device/cpu/bvh.h.
References ccl_device_inline, and kernel_embree_get_hit_object().
Referenced by kernel_embree_convert_hit(), kernel_embree_filter_intersection_func_impl(), kernel_embree_get_hit_object(), and kernel_embree_is_self_intersection().
| ccl_device_intersect bool kernel_embree_intersect | ( | KernelGlobals | kg, |
| const ccl_private Ray * | ray, | ||
| const uint | visibility, | ||
| ccl_private Intersection * | isect ) |
Definition at line 667 of file kernel/device/cpu/bvh.h.
References ccl_device_intersect, ccl_private, CYCLES_EMBREE_USED_FEATURES, kernel_data, kernel_embree_convert_hit(), kernel_embree_custom_intersection_func, kernel_embree_filter_intersection_func, kernel_embree_intersect(), kernel_embree_setup_rayhit(), CCLFirstHitContext::kg, CCLFirstHitContext::ray, and rtcTraversableIntersect1.
Referenced by kernel_embree_intersect(), and scene_intersect().
| ccl_device_inline bool kernel_embree_is_self_intersection | ( | const KernelGlobals | kg, |
| const RTCHit * | hit, | ||
| const Ray * | ray ) |
Definition at line 133 of file kernel/device/cpu/bvh.h.
References ccl_device_inline, intersection_skip_self_shadow(), kernel_data_fetch, kernel_embree_get_hit_object(), kernel_embree_is_self_intersection(), RaySelfPrimitives::light_object, RaySelfPrimitives::object, and Ray::self.
Referenced by kernel_embree_filter_intersection_func_impl(), and kernel_embree_is_self_intersection().
| ccl_device_inline void kernel_embree_setup_ray | ( | const Ray & | ray, |
| RTCRay & | rtc_ray, | ||
| const uint | visibility ) |
Definition at line 103 of file kernel/device/cpu/bvh.h.
References ccl_device_inline, Ray::D, kernel_embree_setup_ray(), Ray::P, Ray::time, Ray::tmax, Ray::tmin, float3::x, float3::y, and float3::z.
Referenced by kernel_embree_setup_ray(), and kernel_embree_setup_rayhit().
| ccl_device_inline void kernel_embree_setup_rayhit | ( | const Ray & | ray, |
| RTCRayHit & | rayhit, | ||
| const uint | visibility ) |
Definition at line 119 of file kernel/device/cpu/bvh.h.
References ccl_device_inline, kernel_embree_setup_ray(), and kernel_embree_setup_rayhit().
Referenced by kernel_embree_intersect(), and kernel_embree_setup_rayhit().