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

Function runIntersectionFilter

kernels/geometry/filter.h:109–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107
108 template<int K>
109 __forceinline vbool<K> runIntersectionFilter(const vbool<K>& valid, const Geometry* const geometry, RayHitK<K>& ray, RayQueryContext* context, HitK<K>& hit)
110 {
111 RTCFilterFunctionNArguments args;
112 vint<K> mask = valid.mask32();
113 args.valid = (int*)&mask;
114 args.geometryUserPtr = geometry->userPtr;
115 args.context = context->user;
116 args.ray = (RTCRayN*)&ray;
117 args.hit = (RTCHitN*)&hit;
118 args.N = K;
119 return runIntersectionFilterHelper<K>(&args,geometry,context);
120 }
121
122 template<int K>
123 __forceinline vbool<K> runOcclusionFilterHelper(RTCFilterFunctionNArguments* args, const Geometry* const geometry, RayQueryContext* context)

Callers 5

operator()Method · 0.85
operator()Method · 0.85
operator()Method · 0.85
operator()Method · 0.85
operator()Method · 0.85

Calls 1

mask32Method · 0.45

Tested by

no test coverage detected