Skip to main content

generate_raw_signal_lut

Function generate_raw_signal_lut 

Source
pub fn generate_raw_signal_lut() -> Box<[[f32; 12]]>
Expand description

Generate the full raw-signal LUT: RAW_ENTRIES rows (index-major, index * 8 + emphasis), each the twelve normalized subcarrier samples.

This is the exact table a host uploads (e.g. as an R32Float / Rgba8Unorm-packed texture) for the signal-decode shader. Deterministic and no_std; see GOLDEN_SIGNAL for the cross-target byte-lock. The 24 KiB table is built directly on the heap (via the crate’s alloc, never a stack temporary) as a RAW_ENTRIES-long boxed slice — generated once at shader-setup time, never on a hot path.