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

◆ LineSegmentsNode()

MayaFlux::Nodes::GpuSync::LineSegmentsNode::LineSegmentsNode ( size_t  initial_capacity = 256)
explicit

Construct an empty segment accumulator.

Parameters
initial_capacityInitial vertex capacity (in segment endpoints, always even).

Definition at line 9 of file LineSegmentsNode.cpp.

11{
12 auto layout = Kakshya::VertexLayout::for_lines(sizeof(LineVertex));
13 layout.vertex_count = initial_capacity;
14 set_vertex_layout(layout);
15
16 m_segments.reserve(initial_capacity);
17
19 "Created LineSegmentsNode with capacity {}", initial_capacity);
20}
#define MF_DEBUG(comp, ctx,...)
void set_vertex_layout(const Kakshya::VertexLayout &layout)
Set cached vertex layout.
PathGeneratorNode(Kinesis::InterpolationMode mode=Kinesis::InterpolationMode::QUADRATIC_BEZIER, Eigen::Index samples_per_segment=32, size_t max_control_points=64, double tension=0.5)
Create path generator with interpolation mode.
@ NodeProcessing
Node graph processing (Nodes::NodeGraphManager)
@ Nodes
DSP Generator and Filter Nodes, graph pipeline, node management.
Kakshya::LineVertex LineVertex
Definition VertexSpec.hpp:8
static VertexLayout for_lines(uint32_t stride=60)
Factory: layout for LineVertex (position, color, thickness, uv, normal, tangent)

References MayaFlux::Kakshya::VertexLayout::for_lines(), m_segments, MF_DEBUG, MayaFlux::Journal::NodeProcessing, MayaFlux::Journal::Nodes, and MayaFlux::Nodes::GpuSync::GeometryWriterNode::set_vertex_layout().

+ Here is the call graph for this function: