125{
126 std::vector<DirtyVertexRange> ranges;
127
128 uint32_t offset = 0;
129 uint32_t index = 0;
130 for (
const auto& item :
m_items) {
131 const auto count =
static_cast<uint32_t
>(item->get_vertex_count());
132 if (item->needs_gpu_update()) {
134 .group_index = index,
135 .vertex_offset = offset,
136 .vertex_count =
count });
137 }
139 ++index;
140 }
141
142 return ranges;
143}
std::vector< std::shared_ptr< GpuSync::GeometryWriterNode > > m_items
std::vector< double > count(std::span< const double > data, size_t n_windows, uint32_t hop_size, uint32_t window_size)
Sample count per window (as double for pipeline uniformity).
A contiguous span of vertex records that changed since the last mark_vertex_data_clean().