45 [[nodiscard]]
bool valid() const noexcept;
84[[nodiscard]] WaveformGpuLayerPlan
88 const WaveformGpuUploadKey* previous_static_key =
nullptr);
95 std::span<WaveformPeakVertex> dst)
noexcept;
104 [[nodiscard]]
bool valid() const noexcept;
135 std::vector<WaveformGpuResourceRecord>* evicted_records =
nullptr);
139 std::uint64_t resource_id, std::size_t bytes,
140 std::uint64_t backend_generation = 1);
143 std::uint64_t backend_generation)
noexcept;
150 [[nodiscard]] std::size_t
size() const noexcept {
151 return records_.size();
155 std::vector<WaveformGpuResourceRecord> records_;
156 std::size_t capacity_ = 0;
157 std::uint64_t clock_ = 0;
158 std::size_t hits_ = 0;
159 std::size_t misses_ = 0;
160 std::size_t evictions_ = 0;
Hover-cursor tracking for platform window hosts.
Definition fwd.hpp:27
WaveformGpuLayerPlan build_waveform_gpu_layer_plan(const pulp::audio::WaveformOverview &thumbnail, const WaveformViewport &viewport, int64_t playhead_sample, const WaveformGpuLayerConfig &config={}, const WaveformGpuUploadKey *previous_static_key=nullptr)
std::size_t fill_waveform_peak_vertices(const pulp::audio::WaveformOverview &thumbnail, const WaveformGpuStaticLayerPlan &plan, std::span< WaveformPeakVertex > dst) noexcept
Fill caller-owned vertices for CPU fallback or GPU upload staging.
WaveformGpuStaticLayerPlan build_waveform_gpu_static_layer_plan(const pulp::audio::WaveformOverview &thumbnail, const WaveformViewport &viewport, const WaveformGpuLayerConfig &config={})
@ a
Definition input_events.hpp:39
@ b
Definition input_events.hpp:39