24template<
class Tvec,
class Tgr
idVec,
class T>
25void shammodels::zeus::modules::ValueLoader<Tvec, TgridVec, T>::load_patch_internal_block_xm(
29 using Block =
typename Config::AMRBlock;
37 nobj * Block::block_size,
38 [](
u32 id_a,
const T *__restrict src, T *__restrict val_out) {
39 const u32 base_idx = id_a;
40 const u32 lid = id_a % Block::block_size;
42 static_assert(dim == 3,
"implemented only in dim 3");
43 std::array<u32, 3> lid_coord = Block::get_coord(lid);
45 if (lid_coord[0] > 0) {
47 val_out[base_idx] = src[base_idx - lid + Block::get_index(lid_coord)];
52template<
class Tvec,
class Tgr
idVec,
class T>
53void shammodels::zeus::modules::ValueLoader<Tvec, TgridVec, T>::load_patch_internal_block_xp(
57 using Block =
typename Config::AMRBlock;
65 nobj * Block::block_size,
66 [](
u32 id_a,
const T *__restrict src, T *__restrict val_out) {
67 const u32 base_idx = id_a;
68 const u32 lid = id_a % Block::block_size;
70 static_assert(dim == 3,
"implemented only in dim 3");
71 std::array<u32, 3> lid_coord = Block::get_coord(lid);
73 if (lid_coord[0] < Block::Nside - 1) {
75 val_out[base_idx] = src[base_idx - lid + Block::get_index(lid_coord)];
80template<
class Tvec,
class Tgr
idVec,
class T>
81void shammodels::zeus::modules::ValueLoader<Tvec, TgridVec, T>::load_patch_internal_block_ym(
85 using Block =
typename Config::AMRBlock;
93 nobj * Block::block_size,
94 [](
u32 id_a,
const T *__restrict src, T *__restrict val_out) {
95 const u32 base_idx = id_a;
96 const u32 lid = id_a % Block::block_size;
98 static_assert(dim == 3,
"implemented only in dim 3");
99 std::array<u32, 3> lid_coord = Block::get_coord(lid);
101 if (lid_coord[1] > 0) {
103 val_out[base_idx] = src[base_idx - lid + Block::get_index(lid_coord)];
108template<
class Tvec,
class Tgr
idVec,
class T>
109void shammodels::zeus::modules::ValueLoader<Tvec, TgridVec, T>::load_patch_internal_block_yp(
113 using Block =
typename Config::AMRBlock;
121 nobj * Block::block_size,
122 [](
u32 id_a,
const T *__restrict src, T *__restrict val_out) {
123 const u32 base_idx = id_a;
124 const u32 lid = id_a % Block::block_size;
126 static_assert(dim == 3,
"implemented only in dim 3");
127 std::array<u32, 3> lid_coord = Block::get_coord(lid);
129 if (lid_coord[1] < Block::Nside - 1) {
131 val_out[base_idx] = src[base_idx - lid + Block::get_index(lid_coord)];
136template<
class Tvec,
class Tgr
idVec,
class T>
137void shammodels::zeus::modules::ValueLoader<Tvec, TgridVec, T>::load_patch_internal_block_zm(
141 using Block =
typename Config::AMRBlock;
149 nobj * Block::block_size,
150 [](
u32 id_a,
const T *__restrict src, T *__restrict val_out) {
151 const u32 base_idx = id_a;
152 const u32 lid = id_a % Block::block_size;
154 static_assert(dim == 3,
"implemented only in dim 3");
155 std::array<u32, 3> lid_coord = Block::get_coord(lid);
157 if (lid_coord[2] > 0) {
159 val_out[base_idx] = src[base_idx - lid + Block::get_index(lid_coord)];
164template<
class Tvec,
class Tgr
idVec,
class T>
165void shammodels::zeus::modules::ValueLoader<Tvec, TgridVec, T>::load_patch_internal_block_zp(
169 using Block =
typename Config::AMRBlock;
177 nobj * Block::block_size,
178 [](
u32 id_a,
const T *__restrict src, T *__restrict val_out) {
179 const u32 base_idx = id_a;
180 const u32 lid = id_a % Block::block_size;
182 static_assert(dim == 3,
"implemented only in dim 3");
183 std::array<u32, 3> lid_coord = Block::get_coord(lid);
185 if (lid_coord[2] < Block::Nside - 1) {
187 val_out[base_idx] = src[base_idx - lid + Block::get_index(lid_coord)];
192template<
class Tvec,
class Tgr
idVec,
class T>
193void shammodels::zeus::modules::ValueLoader<Tvec, TgridVec, T>::load_patch_internal_block(
194 std::array<Tgridscal, dim> offset,
201 using Block =
typename Config::AMRBlock;
203 if constexpr (dim == 3) {
204 if (offset[0] == -1 && offset[1] == 0 && offset[2] == 0) {
206 load_patch_internal_block_xm(nobj, nvar, buf_src, buf_dest);
208 }
else if (offset[0] == 0 && offset[1] == -1 && offset[2] == 0) {
210 load_patch_internal_block_ym(nobj, nvar, buf_src, buf_dest);
212 }
else if (offset[0] == 0 && offset[1] == 0 && offset[2] == -1) {
214 load_patch_internal_block_zm(nobj, nvar, buf_src, buf_dest);
216 }
else if (offset[0] == 1 && offset[1] == 0 && offset[2] == 0) {
218 load_patch_internal_block_xp(nobj, nvar, buf_src, buf_dest);
220 }
else if (offset[0] == 0 && offset[1] == 1 && offset[2] == 0) {
222 load_patch_internal_block_yp(nobj, nvar, buf_src, buf_dest);
224 }
else if (offset[0] == 0 && offset[1] == 0 && offset[2] == 1) {
226 load_patch_internal_block_zp(nobj, nvar, buf_src, buf_dest);
230 sham::format(
"offset : ({},{},{}) is invalid", offset[0], offset[1], offset[2]));
241template<
class Tvec,
class Tgr
idVec,
class T>
242void shammodels::zeus::modules::ValueLoader<Tvec, TgridVec, T>::load_patch_neigh_same_level_xm(
244 std::array<Tgridscal, dim> offset,
256 using Block =
typename Config::AMRBlock;
259 OrientedNeighFaceList<Tvec> &face_xm = face_lists.xm();
269 auto fptr = face_xm.neigh_info.get_read_access(depends_list);
271 auto e = q.
submit(depends_list, [&](sycl::handler &cgh) {
274 shambase::parallel_for(cgh, nobj * Block::block_size,
"compute xm val (2)", [=](
u64 id_a) {
275 const u32 base_idx = id_a;
276 const u32 block_id = id_a / Block::block_size;
277 const u32 lid = id_a % Block::block_size;
279 std::array<u32, 3> lid_coord = Block::get_coord(lid);
281 if (lid_coord[0] == 0) {
282 auto tmp = cell_max[block_id] - cell_min[block_id];
283 i32 Va = tmp.x() * tmp.y() * tmp.z();
285 static_assert(dim == 3,
"implemented only in dim 3");
286 faces_xm.for_each_object(block_id, [&](
u32 block_id_b) {
287 auto tmp = cell_max[block_id_b] - cell_min[block_id_b];
288 i32 nV = tmp.x() * tmp.y() * tmp.z();
291 val_out[base_idx] = src
292 [block_id_b * Block::block_size
293 + Block::get_index({Block::Nside - 1, lid_coord[1], lid_coord[2]})];
307 face_xm.neigh_info.complete_event_state(resulting_events);
310template<
class Tvec,
class Tgr
idVec,
class T>
311void shammodels::zeus::modules::ValueLoader<Tvec, TgridVec, T>::load_patch_neigh_same_level_xp(
313 std::array<Tgridscal, dim> offset,
325 using Block =
typename Config::AMRBlock;
328 OrientedNeighFaceList<Tvec> &face_xp = face_lists.xp();
338 auto fptr = face_xp.neigh_info.get_read_access(depends_list);
340 auto e = q.
submit(depends_list, [&](sycl::handler &cgh) {
343 shambase::parallel_for(cgh, nobj * Block::block_size,
"compute xm val (2)", [=](
u64 id_a) {
344 const u32 base_idx = id_a;
345 const u32 block_id = id_a / Block::block_size;
346 const u32 lid = id_a % Block::block_size;
348 std::array<u32, 3> lid_coord = Block::get_coord(lid);
350 if (lid_coord[0] == Block::Nside - 1) {
351 auto tmp = cell_max[block_id] - cell_min[block_id];
352 i32 Va = tmp.x() * tmp.y() * tmp.z();
354 static_assert(dim == 3,
"implemented only in dim 3");
355 faces_xp.for_each_object(block_id, [&](
u32 block_id_b) {
356 auto tmp = cell_max[block_id_b] - cell_min[block_id_b];
357 i32 nV = tmp.x() * tmp.y() * tmp.z();
361 [block_id_b * Block::block_size
362 + Block::get_index({0, lid_coord[1], lid_coord[2]})];
371 val_out[base_idx] = val;
385 face_xp.neigh_info.complete_event_state(resulting_events);
388template<
class Tvec,
class Tgr
idVec,
class T>
389void shammodels::zeus::modules::ValueLoader<Tvec, TgridVec, T>::load_patch_neigh_same_level_ym(
391 std::array<Tgridscal, dim> offset,
403 using Block =
typename Config::AMRBlock;
406 OrientedNeighFaceList<Tvec> &face_ym = face_lists.ym();
416 auto fptr = face_ym.neigh_info.get_read_access(depends_list);
418 auto e = q.
submit(depends_list, [&](sycl::handler &cgh) {
421 shambase::parallel_for(cgh, nobj * Block::block_size,
"compute ym val (2)", [=](
u64 id_a) {
422 const u32 base_idx = id_a;
423 const u32 block_id = id_a / Block::block_size;
424 const u32 lid = id_a % Block::block_size;
426 std::array<u32, 3> lid_coord = Block::get_coord(lid);
428 if (lid_coord[1] == 0) {
429 auto tmp = cell_max[block_id] - cell_min[block_id];
430 i32 Va = tmp.x() * tmp.y() * tmp.z();
432 static_assert(dim == 3,
"implemented only in dim 3");
433 faces_ym.for_each_object(block_id, [&](
u32 block_id_b) {
434 auto tmp = cell_max[block_id_b] - cell_min[block_id_b];
435 i32 nV = tmp.x() * tmp.y() * tmp.z();
438 val_out[base_idx] = src
439 [block_id_b * Block::block_size
440 + Block::get_index({lid_coord[0], Block::Nside - 1, lid_coord[2]})];
454 face_ym.neigh_info.complete_event_state(resulting_events);
457template<
class Tvec,
class Tgr
idVec,
class T>
458void shammodels::zeus::modules::ValueLoader<Tvec, TgridVec, T>::load_patch_neigh_same_level_yp(
460 std::array<Tgridscal, dim> offset,
472 using Block =
typename Config::AMRBlock;
475 OrientedNeighFaceList<Tvec> &face_yp = face_lists.yp();
485 auto fptr = face_yp.neigh_info.get_read_access(depends_list);
487 auto e = q.
submit(depends_list, [&](sycl::handler &cgh) {
490 shambase::parallel_for(cgh, nobj * Block::block_size,
"compute ym val (2)", [=](
u64 id_a) {
491 const u32 base_idx = id_a;
492 const u32 block_id = id_a / Block::block_size;
493 const u32 lid = id_a % Block::block_size;
495 std::array<u32, 3> lid_coord = Block::get_coord(lid);
497 if (lid_coord[1] == Block::Nside - 1) {
498 auto tmp = cell_max[block_id] - cell_min[block_id];
499 i32 Va = tmp.x() * tmp.y() * tmp.z();
501 static_assert(dim == 3,
"implemented only in dim 3");
502 faces_yp.for_each_object(block_id, [&](
u32 block_id_b) {
503 auto tmp = cell_max[block_id_b] - cell_min[block_id_b];
504 i32 nV = tmp.x() * tmp.y() * tmp.z();
507 val_out[base_idx] = src
508 [block_id_b * Block::block_size
509 + Block::get_index({lid_coord[0], 0, lid_coord[2]})];
523 face_yp.neigh_info.complete_event_state(resulting_events);
526template<
class Tvec,
class Tgr
idVec,
class T>
527void shammodels::zeus::modules::ValueLoader<Tvec, TgridVec, T>::load_patch_neigh_same_level_zm(
529 std::array<Tgridscal, dim> offset,
541 using Block =
typename Config::AMRBlock;
544 OrientedNeighFaceList<Tvec> &face_zm = face_lists.zm();
554 auto fptr = face_zm.neigh_info.get_read_access(depends_list);
556 auto e = q.
submit(depends_list, [&](sycl::handler &cgh) {
559 shambase::parallel_for(cgh, nobj * Block::block_size,
"compute zm val (2)", [=](
u64 id_a) {
560 const u32 base_idx = id_a;
561 const u32 block_id = id_a / Block::block_size;
562 const u32 lid = id_a % Block::block_size;
564 std::array<u32, 3> lid_coord = Block::get_coord(lid);
566 if (lid_coord[2] == 0) {
567 auto tmp = cell_max[block_id] - cell_min[block_id];
568 i32 Va = tmp.x() * tmp.y() * tmp.z();
570 static_assert(dim == 3,
"implemented only in dim 3");
571 faces_zm.for_each_object(block_id, [&](
u32 block_id_b) {
572 auto tmp = cell_max[block_id_b] - cell_min[block_id_b];
573 i32 nV = tmp.x() * tmp.y() * tmp.z();
576 val_out[base_idx] = src
577 [block_id_b * Block::block_size
578 + Block::get_index({lid_coord[0], lid_coord[1], Block::Nside - 1})];
592 face_zm.neigh_info.complete_event_state(resulting_events);
595template<
class Tvec,
class Tgr
idVec,
class T>
596void shammodels::zeus::modules::ValueLoader<Tvec, TgridVec, T>::load_patch_neigh_same_level_zp(
598 std::array<Tgridscal, dim> offset,
610 using Block =
typename Config::AMRBlock;
613 OrientedNeighFaceList<Tvec> &face_zp = face_lists.zp();
623 auto fptr = face_zp.neigh_info.get_read_access(depends_list);
625 auto e = q.
submit(depends_list, [&](sycl::handler &cgh) {
628 shambase::parallel_for(cgh, nobj * Block::block_size,
"compute zm val (2)", [=](
u64 id_a) {
629 const u32 base_idx = id_a;
630 const u32 block_id = id_a / Block::block_size;
631 const u32 lid = id_a % Block::block_size;
633 std::array<u32, 3> lid_coord = Block::get_coord(lid);
635 if (lid_coord[2] == Block::Nside - 1) {
636 auto tmp = cell_max[block_id] - cell_min[block_id];
637 i32 Va = tmp.x() * tmp.y() * tmp.z();
639 static_assert(dim == 3,
"implemented only in dim 3");
640 faces_zp.for_each_object(block_id, [&](
u32 block_id_b) {
641 auto tmp = cell_max[block_id_b] - cell_min[block_id_b];
642 i32 nV = tmp.x() * tmp.y() * tmp.z();
645 val_out[base_idx] = src
646 [block_id_b * Block::block_size
647 + Block::get_index({lid_coord[0], lid_coord[1], 0})];
661 face_zp.neigh_info.complete_event_state(resulting_events);
664template<
class Tvec,
class Tgr
idVec,
class T>
665void shammodels::zeus::modules::ValueLoader<Tvec, TgridVec, T>::load_patch_neigh_same_level(
667 std::array<Tgridscal, dim> offset,
678 using Block =
typename Config::AMRBlock;
680 using namespace shamrock::patch;
685 if constexpr (dim == 3) {
686 if (offset[0] == -1 && offset[1] == 0 && offset[2] == 0) {
688 load_patch_neigh_same_level_xm(
689 offset, buf_cell_min, buf_cell_max, face_lists, nobj, nvar, buf_src, buf_dest);
691 }
else if (offset[0] == 0 && offset[1] == -1 && offset[2] == 0) {
693 load_patch_neigh_same_level_ym(
694 offset, buf_cell_min, buf_cell_max, face_lists, nobj, nvar, buf_src, buf_dest);
696 }
else if (offset[0] == 0 && offset[1] == 0 && offset[2] == -1) {
698 load_patch_neigh_same_level_zm(
699 offset, buf_cell_min, buf_cell_max, face_lists, nobj, nvar, buf_src, buf_dest);
701 }
else if (offset[0] == 1 && offset[1] == 0 && offset[2] == 0) {
703 load_patch_neigh_same_level_xp(
704 offset, buf_cell_min, buf_cell_max, face_lists, nobj, nvar, buf_src, buf_dest);
706 }
else if (offset[0] == 0 && offset[1] == 1 && offset[2] == 0) {
708 load_patch_neigh_same_level_yp(
709 offset, buf_cell_min, buf_cell_max, face_lists, nobj, nvar, buf_src, buf_dest);
711 }
else if (offset[0] == 0 && offset[1] == 0 && offset[2] == 1) {
713 load_patch_neigh_same_level_zp(
714 offset, buf_cell_min, buf_cell_max, face_lists, nobj, nvar, buf_src, buf_dest);
718 sham::format(
"offset : ({},{},{}) is invalid", offset[0], offset[1], offset[2]));
729template<
class Tvec,
class Tgr
idVec,
class T>
730void shammodels::zeus::modules::ValueLoader<Tvec, TgridVec, T>::load_patch_neigh_level_up(
732 std::array<Tgridscal, dim> offset,
744 using Block =
typename Config::AMRBlock;
746 using namespace shamrock::patch;
751 if constexpr (dim == 3) {
752 if (offset[0] == -1 && offset[1] == 0 && offset[2] == 0) {
754 OrientedNeighFaceList<Tvec> &face_xm = face_lists.xm();
756 }
else if (offset[0] == 0 && offset[1] == -1 && offset[2] == 0) {
758 OrientedNeighFaceList<Tvec> &face_ym = face_lists.ym();
760 }
else if (offset[0] == 0 && offset[1] == 0 && offset[2] == -1) {
762 OrientedNeighFaceList<Tvec> &face_zm = face_lists.zm();
764 }
else if (offset[0] == 1 && offset[1] == 0 && offset[2] == 0) {
766 OrientedNeighFaceList<Tvec> &face_xp = face_lists.xp();
768 }
else if (offset[0] == 0 && offset[1] == 1 && offset[2] == 0) {
770 OrientedNeighFaceList<Tvec> &face_yp = face_lists.yp();
772 }
else if (offset[0] == 0 && offset[1] == 0 && offset[2] == 1) {
774 OrientedNeighFaceList<Tvec> &face_zp = face_lists.zp();
778 sham::format(
"offset : ({},{},{}) is invalid", offset[0], offset[1], offset[2]));
789template<
class Tvec,
class Tgr
idVec,
class T>
790void shammodels::zeus::modules::ValueLoader<Tvec, TgridVec, T>::load_patch_neigh_level_down(
792 std::array<Tgridscal, dim> offset,
803 using Block =
typename Config::AMRBlock;
805 using namespace shamrock::patch;
810 if constexpr (dim == 3) {
811 if (offset[0] == -1 && offset[1] == 0 && offset[2] == 0) {
813 OrientedNeighFaceList<Tvec> &face_xm = face_lists.xm();
815 }
else if (offset[0] == 0 && offset[1] == -1 && offset[2] == 0) {
817 OrientedNeighFaceList<Tvec> &face_ym = face_lists.ym();
819 }
else if (offset[0] == 0 && offset[1] == 0 && offset[2] == -1) {
821 OrientedNeighFaceList<Tvec> &face_zm = face_lists.zm();
823 }
else if (offset[0] == 1 && offset[1] == 0 && offset[2] == 0) {
825 OrientedNeighFaceList<Tvec> &face_xp = face_lists.xp();
827 }
else if (offset[0] == 0 && offset[1] == 1 && offset[2] == 0) {
829 OrientedNeighFaceList<Tvec> &face_yp = face_lists.yp();
831 }
else if (offset[0] == 0 && offset[1] == 0 && offset[2] == 1) {
833 OrientedNeighFaceList<Tvec> &face_zp = face_lists.zp();
837 sham::format(
"offset : ({},{},{}) is invalid", offset[0], offset[1], offset[2]));
848template<
class Tvec,
class Tgr
idVec,
class T>
851 std::string field_name, std::array<Tgridscal, dim> offset, std::string result_name) {
855 using namespace shamrock::patch;
860 using Block =
typename Config::AMRBlock;
865 return storage.merged_patchdata_ghost.get().get(
id).total_elements;
870 u32 ifield = ghost_layout.get_field_idx<T>(field_name);
871 u32 nvar = ghost_layout.get_field<T>(ifield).nvar;
874 MergedPDat &mpdat = storage.merged_patchdata_ghost.get().get(p.
id_patch);
879 load_patch_internal_block(offset, mpdat.total_elements, nvar, buf_src, buf_dest);
883 MergedPDat &mpdat = storage.merged_patchdata_ghost.get().get(p.
id_patch);
892 = storage.face_lists.get().get(p.
id_patch);
894 load_patch_neigh_same_level(
899 mpdat.total_elements,
906 MergedPDat &mpdat = storage.merged_patchdata_ghost.get().get(p.
id_patch);
915 = storage.face_lists.get().get(p.
id_patch);
917 load_patch_neigh_level_up(
922 mpdat.total_elements,
929 MergedPDat &mpdat = storage.merged_patchdata_ghost.get().get(p.
id_patch);
938 = storage.face_lists.get().get(p.
id_patch);
940 load_patch_neigh_level_down(
945 mpdat.total_elements,
954template<
class Tvec,
class Tgr
idVec,
class T>
958 std::array<Tgridscal, dim> offset,
959 std::string result_name) {
963 using namespace shamrock::patch;
967 using Flagger = FaceFlagger<Tvec, TgridVec>;
968 using Block =
typename Config::AMRBlock;
972 = utility.make_compute_field<T>(result_name, Block::block_size, [&](
u64 id) {
973 return storage.merged_patchdata_ghost.get().get(
id).total_elements;
977 MergedPDat &mpdat = storage.merged_patchdata_ghost.get().get(p.
id_patch);
982 load_patch_internal_block(
984 mpdat.total_elements,
985 compute_field.get_field(p.
id_patch).get_nvar(),
991 MergedPDat &mpdat = storage.merged_patchdata_ghost.get().get(p.
id_patch);
1000 = storage.face_lists.get().get(p.
id_patch);
1002 load_patch_neigh_same_level(
1007 mpdat.total_elements,
1008 compute_field.get_field(p.
id_patch).get_nvar(),
1014 MergedPDat &mpdat = storage.merged_patchdata_ghost.get().get(p.
id_patch);
1023 = storage.face_lists.get().get(p.
id_patch);
1025 load_patch_neigh_level_up(
1030 mpdat.total_elements,
1031 compute_field.get_field(p.
id_patch).get_nvar(),
1037 MergedPDat &mpdat = storage.merged_patchdata_ghost.get().get(p.
id_patch);
1046 = storage.face_lists.get().get(p.
id_patch);
1048 load_patch_neigh_level_down(
1053 mpdat.total_elements,
1054 compute_field.get_field(p.
id_patch).get_nvar(),
std::uint32_t u32
32 bit unsigned integer
std::uint64_t u64
64 bit unsigned integer
std::int32_t i32
32 bit integer
A buffer allocated in USM (Unified Shared Memory).
void complete_event_state(sycl::event e) const
Complete the event state of the buffer.
T * get_write_access(sham::EventList &depends_list, SourceLocation src_loc=SourceLocation{})
Get a read-write pointer to the buffer's data.
const T * get_read_access(sham::EventList &depends_list, SourceLocation src_loc=SourceLocation{}) const
Get a read-only pointer to the buffer's data.
A SYCL queue associated with a device and a context.
sycl::event submit(Fct &&fct)
Submits a kernel to the SYCL queue.
Class to manage a list of SYCL events.
void add_event(sycl::event e)
Add an event to the list of events.
flag faces with a lookup index for the orientation
shamrock::ComputeField< T > load_value_with_gz(std::string field_name, std::array< Tgridscal, dim > offset, std::string result_name)
ComputeField< T > make_compute_field(std::string new_name, u32 nvar)
create a compute field and init it to zeros
PatchDataLayer container class, the layout is described in patchdata_layout.
void kernel_call(sham::DeviceQueue &q, RefIn in, RefOut in_out, u32 n, Functor &&func, SourceLocation &&callsite=SourceLocation{})
Submit a kernel to a SYCL queue.
T & get_check_ref(const std::unique_ptr< T > &ptr, SourceLocation loc=SourceLocation())
Takes a std::unique_ptr and returns a reference to the object it holds. It throws a std::runtime_erro...
ExcptTypes make_except_with_loc(std::string message, SourceLocation loc=SourceLocation{})
Create an exception with a message and a location.
void throw_unimplemented(SourceLocation loc=SourceLocation{})
Throw a std::runtime_error saying that the function is unimplemented.
namespace for math utility
namespace for the main framework
shambase::details::BasicStackEntry StackEntry
Alias for shambase::details::BasicStackEntry.
A class that references multiple buffers or similar objects.
Patch object that contain generic patch information.
u64 id_patch
unique key that identify the patch