MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ declared_topology()

std::optional< Portal::Graphics::PrimitiveTopology > MayaFlux::Nodes::Network::TopologyOperator::declared_topology ( ) const
overridevirtual

Forwards to the first topology's own get_primitive_topology().

Returns
nullopt when there is no topology yet; otherwise m_topologies[0]->get_primitive_topology() (TopologyGeneratorNode defaults to LINE_LIST: expanded edges, not one continuous strip through the whole graph). Same first-element choice get_vertex_layout() already makes for the aggregate.

Reimplemented from MayaFlux::Nodes::Network::GraphicsOperator.

Definition at line 162 of file TopologyOperator.cpp.

163{
164 if (m_topologies.empty()) {
165 return std::nullopt;
166 }
167 return m_topologies[0]->get_primitive_topology();
168}
std::vector< std::shared_ptr< GpuSync::TopologyGeneratorNode > > m_topologies

References m_topologies.