|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::NetworkGeometryBuffer::update_chain_render_range | ( | size_t | index, |
| uint32_t | vertex_offset, | ||
| uint32_t | vertex_count, | ||
| const std::optional< Kakshya::VertexLayout > & | layout, | ||
| std::vector< Portal::Graphics::DrawRun > | runs = {} |
||
| ) |
Update vertex range for a specific operator chain index.
| index | Operator chain index |
| vertex_offset | Starting vertex offset for this chain |
| vertex_count | Number of vertices for this chain |
| layout | Optional vertex layout for this chain (if different from primary) |
| runs | This operator's spans, in this buffer's vertex coordinates. Consumed only by a triangulating processor; empty leaves it to treat its whole range as one span. |
This allows the processor to push per-chain vertex ranges to the RenderProcessor, enabling it to issue draw calls for specific subsets of the geometry.
Offsets in runs must already be rebased off this operator's slice base: GraphicsOperator::topology_runs() reports operator-local offsets, and only whoever concatenated the slices knows where each one landed.
Definition at line 253 of file NetworkGeometryBuffer.cpp.
References index, m_chain_render_processors, and MayaFlux::Buffers::VKBuffer::m_render_processor.