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

Function copyHitToRay

kernels/common/hit.h:125–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123
124 template<typename Hit>
125 __forceinline void copyHitToRay(RayHit& ray, const Hit& hit)
126 {
127 ray.Ng = hit.Ng;
128 ray.u = hit.u;
129 ray.v = hit.v;
130 ray.primID = hit.primID;
131 ray.geomID = hit.geomID;
132 instance_id_stack::copy_UU(hit.instID, ray.instID);
133#if defined(RTC_GEOMETRY_INSTANCE_ARRAY)
134 instance_id_stack::copy_UU(hit.instPrimID, ray.instPrimID);
135#endif
136 }
137
138 template<int K>
139 __forceinline void copyHitToRay(const vbool<K>& mask, RayHitK<K>& ray, const HitK<K>& hit)

Callers 2

Calls 2

copy_UUFunction · 0.85
storeuFunction · 0.50

Tested by

no test coverage detected