MCPcopy Create free account
hub / github.com/RenderKit/embree / valid

Function valid

kernels/common/point_query.h:26–34  ·  view source on GitHub ↗

Calculates if this is a valid ray that does not cause issues during traversal */

Source from the content-addressed store, hash-verified

24
25 /* Calculates if this is a valid ray that does not cause issues during traversal */
26 __forceinline vbool<K> valid() const
27 {
28 const vbool<K> vx = (abs(p.x) <= vfloat<K>(FLT_LARGE));
29 const vbool<K> vy = (abs(p.y) <= vfloat<K>(FLT_LARGE));
30 const vbool<K> vz = (abs(p.z) <= vfloat<K>(FLT_LARGE));
31 const vbool<K> vn = radius >= vfloat<K>(0);
32 const vbool<K> vf = abs(time) < vfloat<K>(inf);
33 return vx & vy & vz & vn & vf;
34 }
35
36 __forceinline void get(PointQueryK<1>* ray) const;
37 __forceinline void get(size_t i, PointQueryK<1>& ray) const;

Callers 15

validMethod · 0.70
linearBoundsMethod · 0.70
createPrimRefMBArrayMethod · 0.70
boundsMethod · 0.70
getObjectBoundsMethod · 0.70
linearBoundsMethod · 0.70
buildBoundsMethod · 0.70
createPrimRefArrayMethod · 0.70
createPrimRefMBArrayMethod · 0.70
validMethod · 0.70
createPrimRefArrayMethod · 0.70
createPrimRefMBArrayMethod · 0.70

Calls 4

absFunction · 0.50
allFunction · 0.50
le_maskFunction · 0.50
Vec3faClass · 0.50

Tested by

no test coverage detected