34 template<class Tmorton, class Tvec, u32 dim = shambase::VectorProperties<Tvec>::dimension>
78 template<
class Tmorton,
class Tvec, u32 dim>
79 MortonCodeSet<Tmorton, Tvec, dim> morton_code_set_from_positions(
80 const sham::DeviceScheduler_ptr &dev_sched,
105 template<
class Tmorton,
class Tvec, u32 dim>
106 MortonCodeSet<Tmorton, Tvec, dim> morton_code_set_from_positions(
107 const sham::DeviceScheduler_ptr &dev_sched,
std::uint32_t u32
32 bit unsigned integer
A buffer allocated in USM (Unified Shared Memory)
Class representing a set of Morton codes with associated bounding box and position data.
MortonCodeSet(shammath::AABB< Tvec > &&bounding_box, u32 &&cnt_obj, u32 &&morton_count, sham::DeviceBuffer< Tmorton > &&morton_codes)
Move constructor from each members.
u32 morton_count
The count of Morton codes in the set (every code after cnt_obj is err_code)
shammath::AABB< Tvec > bounding_box
The axis-aligned bounding box for the set of positions.
sham::DeviceBuffer< Tmorton > morton_codes
Device buffer holding the Morton codes.
u32 cnt_obj
The count of objects represented in the set.
Axis-Aligned bounding box.