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

Function pointQueryNodeSphere

kernels/bvh/node_intersector1.h:215–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213
214 template<int N>
215 __forceinline size_t pointQueryNodeSphere(const typename BVHN<N>::AABBNode* node, const TravPointQuery<N>& query, vfloat<N>& dist)
216 {
217 const vfloat<N> minX = vfloat<N>::load((float*)((const char*)&node->lower_x));
218 const vfloat<N> minY = vfloat<N>::load((float*)((const char*)&node->lower_y));
219 const vfloat<N> minZ = vfloat<N>::load((float*)((const char*)&node->lower_z));
220 const vfloat<N> maxX = vfloat<N>::load((float*)((const char*)&node->upper_x));
221 const vfloat<N> maxY = vfloat<N>::load((float*)((const char*)&node->upper_y));
222 const vfloat<N> maxZ = vfloat<N>::load((float*)((const char*)&node->upper_z));
223 return pointQuerySphereDistAndMask(query, dist, minX, maxX, minY, maxY, minZ, maxZ);
224 }
225
226 template<int N>
227 __forceinline size_t pointQueryNodeSphere(const typename BVHN<N>::AABBNodeMB* node, const TravPointQuery<N>& query, const float time, vfloat<N>& dist)

Callers 8

pointQueryNodeSphereMB4DFunction · 0.85
pointQueryMethod · 0.85
pointQueryMethod · 0.85
pointQueryMethod · 0.85
pointQueryMethod · 0.85
pointQueryMethod · 0.85
pointQueryMethod · 0.85
pointQueryMethod · 0.85

Calls 4

loadFunction · 0.50
maddFunction · 0.50
movemaskFunction · 0.50

Tested by

no test coverage detected