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

◆ declared_topology()

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

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 193 of file TopologyOperator.cpp.

194{
195 if (m_topologies.empty()) {
196 return std::nullopt;
197 }
198 return m_topologies[0]->get_primitive_topology();
199}
std::vector< std::shared_ptr< GpuSync::TopologyGeneratorNode > > m_topologies

References m_topologies.