2021-05-20 12:49:33 +02:00
|
|
|
// Copyright 2009-2021 Intel Corporation
|
2020-12-19 14:50:20 +01:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../common/scene.h"
|
|
|
|
#include "../common/primref.h"
|
|
|
|
#include "../common/primref_mb.h"
|
|
|
|
#include "priminfo.h"
|
|
|
|
#include "bvh_builder_morton.h"
|
|
|
|
|
|
|
|
namespace embree
|
2021-05-20 12:49:33 +02:00
|
|
|
{
|
2020-12-19 14:50:20 +01:00
|
|
|
namespace isa
|
|
|
|
{
|
2021-05-20 12:49:33 +02:00
|
|
|
PrimInfo createPrimRefArray(Geometry* geometry, unsigned int geomID, size_t numPrimitives, mvector<PrimRef>& prims, BuildProgressMonitor& progressMonitor);
|
2020-12-19 14:50:20 +01:00
|
|
|
|
2021-05-20 12:49:33 +02:00
|
|
|
PrimInfo createPrimRefArray(Scene* scene, Geometry::GTypeMask types, bool mblur, size_t numPrimitives, mvector<PrimRef>& prims, BuildProgressMonitor& progressMonitor);
|
2020-12-19 14:50:20 +01:00
|
|
|
|
2021-05-20 12:49:33 +02:00
|
|
|
PrimInfo createPrimRefArrayMBlur(Scene* scene, Geometry::GTypeMask types, size_t numPrimitives, mvector<PrimRef>& prims, BuildProgressMonitor& progressMonitor, size_t itime = 0);
|
2020-12-19 14:50:20 +01:00
|
|
|
|
2021-05-20 12:49:33 +02:00
|
|
|
PrimInfoMB createPrimRefArrayMSMBlur(Scene* scene, Geometry::GTypeMask types, size_t numPrimitives, mvector<PrimRefMB>& prims, BuildProgressMonitor& progressMonitor, BBox1f t0t1 = BBox1f(0.0f,1.0f));
|
2020-12-19 14:50:20 +01:00
|
|
|
|
|
|
|
template<typename Mesh>
|
|
|
|
size_t createMortonCodeArray(Mesh* mesh, mvector<BVHBuilderMorton::BuildPrim>& morton, BuildProgressMonitor& progressMonitor);
|
2021-05-20 12:49:33 +02:00
|
|
|
|
|
|
|
/* special variants for grids */
|
|
|
|
PrimInfo createPrimRefArrayGrids(Scene* scene, mvector<PrimRef>& prims, mvector<SubGridBuildData>& sgrids);
|
|
|
|
|
|
|
|
PrimInfo createPrimRefArrayGrids(GridMesh* mesh, mvector<PrimRef>& prims, mvector<SubGridBuildData>& sgrids);
|
|
|
|
|
2020-12-19 14:50:20 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|