Blender V5.0
util.h File Reference

Go to the source code of this file.

Macros

#define CURVE_SHADOW_TRANSPARENCY_CUTOFF   0.001f

Functions

CCL_NAMESPACE_BEGIN ccl_device_inline bool intersection_ray_valid (const ccl_private Ray *ray)
ccl_device_forceinline float intersection_t_offset (const float t)
ccl_device_inline float3 ray_offset (const float3 P, const float3 Ng)
ccl_device int intersections_compare (const void *a, const void *b)
ccl_device_inline void sort_intersections_and_normals (ccl_private Intersection *hits, ccl_private float3 *Ng, uint num_hits)
ccl_device_forceinline int intersection_get_shader_flags (KernelGlobals kg, const int prim, const int type)
ccl_device_forceinline int intersection_get_shader_from_isect_prim (KernelGlobals kg, const int prim, const int isect_type)
ccl_device_forceinline int intersection_get_shader (KernelGlobals kg, const ccl_private Intersection *ccl_restrict isect)
ccl_device_forceinline int intersection_get_object_flags (KernelGlobals kg, const ccl_private Intersection *ccl_restrict isect)
ccl_device_inline int intersection_find_attribute (KernelGlobals kg, const int object, const uint id)
ccl_device_inline float intersection_curve_shadow_transparency (KernelGlobals kg, const int object, const int prim, const int type, const float u)
ccl_device_inline bool intersection_skip_self (const ccl_ray_data RaySelfPrimitives &self, const int object, const int prim)
ccl_device_inline bool intersection_skip_self_shadow (const ccl_ray_data RaySelfPrimitives &self, const int object, const int prim)
ccl_device_inline bool intersection_skip_self_local (const ccl_ray_data RaySelfPrimitives &self, const int prim)
ccl_device_inline bool intersection_skip_shadow_link (KernelGlobals kg, const ccl_ray_data RaySelfPrimitives &self, const int isect_object)
ccl_device_forceinline bool intersection_skip_shadow_already_recoded (IntegratorShadowState state, const int object, const int prim, const int num_hits)

Macro Definition Documentation

◆ CURVE_SHADOW_TRANSPARENCY_CUTOFF

#define CURVE_SHADOW_TRANSPARENCY_CUTOFF   0.001f

Function Documentation

◆ intersection_curve_shadow_transparency()

◆ intersection_find_attribute()

◆ intersection_get_object_flags()

◆ intersection_get_shader()

◆ intersection_get_shader_flags()

◆ intersection_get_shader_from_isect_prim()

ccl_device_forceinline int intersection_get_shader_from_isect_prim ( KernelGlobals kg,
const int prim,
const int isect_type )

◆ intersection_ray_valid()

CCL_NAMESPACE_BEGIN ccl_device_inline bool intersection_ray_valid ( const ccl_private Ray * ray)

◆ intersection_skip_self()

ccl_device_inline bool intersection_skip_self ( const ccl_ray_data RaySelfPrimitives & self,
const int object,
const int prim )

◆ intersection_skip_self_local()

ccl_device_inline bool intersection_skip_self_local ( const ccl_ray_data RaySelfPrimitives & self,
const int prim )

◆ intersection_skip_self_shadow()

◆ intersection_skip_shadow_already_recoded()

ccl_device_forceinline bool intersection_skip_shadow_already_recoded ( IntegratorShadowState state,
const int object,
const int prim,
const int num_hits )

◆ intersection_skip_shadow_link()

◆ intersection_t_offset()

◆ intersections_compare()

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().

◆ ray_offset()

◆ sort_intersections_and_normals()

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.