Coalesces adjacent point collections sharing a concatenable topology into one run.
Strip and fan collections are always reported separately.
459{
460 std::vector<DrawRun> runs;
461 uint32_t offset = 0;
462
464 const auto count =
static_cast<uint32_t
>(points.collection->get_vertex_count());
465 const auto topo = points.collection->get_primitive_topology();
466
468 runs.back().vertex_count +=
count;
469 } else {
470 runs.push_back(
DrawRun { .topology = topo, .vertex_offset = offset, .vertex_count =
count });
471 }
472
474 }
475
476 return runs;
477}
std::vector< CollectionGroup > m_collections
std::vector< double > count(std::span< const double > data, size_t n_windows, uint32_t hop_size, uint32_t window_size)
Sample count per window (as double for pipeline uniformity).
constexpr bool is_concatenable_topology(PrimitiveTopology topology) noexcept
Whether two adjacent spans of this topology can be concatenated without altering the primitives they ...
Portal::Graphics::DrawRun DrawRun