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

◆ declared_topology()

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

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 215 of file PathOperator.cpp.

216{
217 if (m_paths.empty()) {
218 return std::nullopt;
219 }
220 return m_paths[0]->get_primitive_topology();
221}
std::vector< std::shared_ptr< GpuSync::PathGeneratorNode > > m_paths

References m_paths.