MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
IntervalScanStage.hpp File Reference

The stage that runs the interval scan on device memory, its push layout and its buffer contract. More...

Include dependency graph for IntervalScanStage.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MayaFlux::Yantra::IntervalScanPC
 Push constants of interval_scan.comp. More...
struct  MayaFlux::Yantra::IntervalScanReport
 What one dispatch of the scan left, decoded from the report buffer. More...

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
namespace  MayaFlux::Yantra
namespace  MayaFlux::Yantra::detail

Functions

IntervalScanReport MayaFlux::Yantra::decode_interval_scan_report (std::span< const uint32_t > words)
 Decode the report buffer.
float MayaFlux::Yantra::detail::interval_scan_ceil_float (double value) noexcept
constexpr size_t MayaFlux::Yantra::interval_scan_runs_words (size_t n) noexcept
 Words the run list needs for n scores: a start and an end for each run that can close, plus slack.
DependencyStage MayaFlux::Yantra::interval_scan_stage (const Kinesis::Discrete::IntervalScanConfig &config, uint64_t scores, uint64_t gate, uint64_t state, uint64_t runs, uint64_t report, uint32_t first_index, uint32_t n, bool flush)
 One interval_scan dispatch: continue a stream with n scores from device memory.

Variables

constexpr uint32_t MayaFlux::Yantra::interval_scan_flag_emit_on_close = 8
constexpr uint32_t MayaFlux::Yantra::interval_scan_flag_flush = 2
constexpr uint32_t MayaFlux::Yantra::interval_scan_flag_gated = 4
constexpr uint32_t MayaFlux::Yantra::interval_scan_flag_longest = 1
constexpr uint32_t MayaFlux::Yantra::interval_scan_report_words = 6
 Words of the report buffer: the run count, then the open run and the pending interval.
constexpr const char * MayaFlux::Yantra::interval_scan_shader = "interval_scan.comp.spv"
constexpr uint32_t MayaFlux::Yantra::interval_scan_state_words = 16
 Words of the state buffer.

Detailed Description

The stage that runs the interval scan on device memory, its push layout and its buffer contract.

The scan is the GPU form of Kinesis::Discrete::IntervalScanner and gives the same intervals. The stage reads scores through a device address, so the output buffer of a network recorded in the same submission feeds it with no read-back in between. A layout does not change once released; fields are added only by taking a reserved word.

Definition in file IntervalScanStage.hpp.