| 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 |
nothing calls this directly
no test coverage detected