Coalesces adjacent point collections sharing a concatenable topology into one run.
Strip and fan collections are always reported separately.
Reimplemented from MayaFlux::Nodes::Network::GraphicsOperator.
Definition at line 327 of file PhysicsOperator.cpp.
328{
329 std::vector<DrawRun> runs;
331
333 const auto count =
static_cast<uint32_t
>(
points.collection->get_vertex_count());
334 const auto topo =
points.collection->get_primitive_topology();
335
337 runs.back().vertex_count +=
count;
338 } else {
340 }
341
343 }
344
345 return runs;
346}
std::vector< glm::vec2 > * points
std::vector< CollectionGroup > m_collections
Portal::Graphics::DrawRun DrawRun
constexpr bool is_concatenable_topology(PrimitiveTopology topology) noexcept
Whether two adjacent spans of this topology can be concatenated without altering the primitives they ...
PrimitiveTopology topology
References count, m_collections, offset, points, and MayaFlux::Portal::Graphics::DrawRun::topology.