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

◆ declared_topology()

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

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

Returns
nullopt when there is no path yet; otherwise m_paths[0]->get_primitive_topology() (PathGeneratorNode defaults to LINE_STRIP). Same first-element choice get_vertex_layout() already makes for the aggregate.

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

Definition at line 197 of file PathOperator.cpp.

198{
199 if (m_paths.empty()) {
200 return std::nullopt;
201 }
202 return m_paths[0]->get_primitive_topology();
203}
std::vector< std::shared_ptr< GpuSync::PathGeneratorNode > > m_paths

References m_paths.