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

Method createPrimRefArray

kernels/common/scene_grid_mesh.h:398–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396
397#if defined(EMBREE_SYCL_SUPPORT)
398 PrimInfo createPrimRefArray(PrimRef* prims, const range<size_t>& r, size_t k, unsigned int geomID) const override
399 {
400 PrimInfo pinfo(empty);
401 for (size_t j=r.begin(); j<r.end(); j++)
402 {
403 BBox3fa bounds = empty;
404 const PrimID_XY& quad = quadID_to_primID_xy[j];
405 if (!buildBoundsQuad(grids[quad.primID],quad.x,quad.y,bounds)) continue;
406 const PrimRef prim(bounds,geomID,unsigned(j));
407 pinfo.add_center2(prim);
408 prims[k++] = prim;
409 }
410 return pinfo;
411 }
412#endif
413
414 PrimInfo createPrimRefArray(mvector<PrimRef>& prims, mvector<SubGridBuildData>& sgrids, const range<size_t>& r, size_t k, unsigned int geomID) const override

Callers

nothing calls this directly

Calls 7

SubGridBuildDataClass · 0.85
add_center2Method · 0.80
get3x3FlagsXMethod · 0.80
get3x3FlagsYMethod · 0.80
validFunction · 0.70
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected