| 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 | { |
no test coverage detected