Coalesces adjacent topology graphs sharing a concatenable topology into one run.
Strip and fan graphs are always reported separately.
Reimplemented from MayaFlux::Nodes::Network::GraphicsOperator.
Definition at line 214 of file TopologyOperator.cpp.
215{
216 std::vector<DrawRun> runs;
218
220 const auto count =
static_cast<uint32_t
>(tp->get_vertex_count());
221 const auto topo = tp->get_primitive_topology();
222
224 runs.back().vertex_count +=
count;
225 } else {
227 }
228
230 }
231
232 return runs;
233}
std::vector< std::shared_ptr< GpuSync::TopologyGeneratorNode > > m_topologies
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_topologies, offset, and MayaFlux::Portal::Graphics::DrawRun::topology.