Blender  V2.93
Macros | Functions
kernel/bvh/bvh.h File Reference
#include "kernel/bvh/bvh_types.h"
#include "kernel/bvh/bvh_nodes.h"
#include "kernel/bvh/bvh_traversal.h"

Go to the source code of this file.

Macros

#define BVH_FUNCTION_NAME   bvh_intersect
 
#define BVH_FUNCTION_FEATURES   0
 

Functions

ccl_device_inline bool scene_intersect_valid (const Ray *ray)
 
ccl_device_intersect bool scene_intersect (KernelGlobals *kg, const Ray *ray, const uint visibility, Intersection *isect)
 
ccl_device_inline float3 ray_offset (float3 P, float3 Ng)
 

Macro Definition Documentation

◆ BVH_FUNCTION_FEATURES

#define BVH_FUNCTION_FEATURES   0

Definition at line 43 of file kernel/bvh/bvh.h.

◆ BVH_FUNCTION_NAME

#define BVH_FUNCTION_NAME   bvh_intersect

Definition at line 42 of file kernel/bvh/bvh.h.

Function Documentation

◆ ray_offset()

ccl_device_inline float3 ray_offset ( float3  P,
float3  Ng 
)

◆ scene_intersect()

ccl_device_intersect bool scene_intersect ( KernelGlobals *  kg,
const Ray ray,
const uint  visibility,
Intersection isect 
)

◆ scene_intersect_valid()

ccl_device_inline bool scene_intersect_valid ( const Ray ray)

Definition at line 139 of file kernel/bvh/bvh.h.

References Ray::D, isfinite_safe(), len_squared(), Ray::P, and float3::x.

Referenced by scene_intersect().