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

Function runIntersectionFilter1Helper

kernels/geometry/filter.h:15–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 namespace isa
14 {
15 __forceinline bool runIntersectionFilter1Helper(RTCFilterFunctionNArguments* args, const Geometry* const geometry, RayQueryContext* context)
16 {
17 if (geometry->intersectionFilterN)
18 {
19 geometry->intersectionFilterN(args);
20
21 if (args->valid[0] == 0)
22 return false;
23 }
24
25 if (context->getFilter())
26 {
27 if (context->enforceArgumentFilterFunction() || geometry->hasArgumentFilterFunctions())
28 context->getFilter()(args);
29
30 if (args->valid[0] == 0)
31 return false;
32 }
33
34 copyHitToRay(*(RayHit*)args->ray,*(Hit*)args->hit);
35 return true;
36 }
37
38 __forceinline bool runIntersectionFilter1(const Geometry* const geometry, RayHit& ray, RayQueryContext* context, Hit& hit)
39 {

Callers 1

runIntersectionFilter1Function · 0.70

Calls 4

copyHitToRayFunction · 0.85
intersectionFilterNMethod · 0.80
getFilterMethod · 0.80

Tested by

no test coverage detected