pub struct BeatDropTexture {
pub spectrum: [f32; 1024],
pub peak: [f32; 1024],
pub wave: [[f32; 480]; 2],
}Expand description
BeatDrop’s sampler_fft (1024 x 2: smoothed spectrum, peak hold) and sampler_wave (480 x 2: left, right, signal
scaled to -1..1), uploaded as the rows of one BEATDROP_FFT_BINS x BEATDROP_ROWS R32Float texture.
Fields§
§spectrum: [f32; 1024]Row 0: m_fFFTSmoothed.
peak: [f32; 1024]Row 1: m_fFFTPeak.
wave: [[f32; 480]; 2]Rows 2 and 3: left and right waveform.
Implementations§
Source§impl BeatDropTexture
impl BeatDropTexture
Sourcepub fn texels(&self) -> Vec<f32>
pub fn texels(&self) -> Vec<f32>
The texels in upload order (BEATDROP_FFT_BINS * BEATDROP_ROWS floats, rows of BEATDROP_FFT_BINS; the
waveform rows are zero past BEATDROP_WAVE_SAMPLES).
Trait Implementations§
Source§impl Clone for BeatDropTexture
impl Clone for BeatDropTexture
Source§impl Debug for BeatDropTexture
impl Debug for BeatDropTexture
Source§impl PartialEq for BeatDropTexture
impl PartialEq for BeatDropTexture
impl StructuralPartialEq for BeatDropTexture
Auto Trait Implementations§
impl Freeze for BeatDropTexture
impl RefUnwindSafe for BeatDropTexture
impl Send for BeatDropTexture
impl Sync for BeatDropTexture
impl Unpin for BeatDropTexture
impl UnsafeUnpin for BeatDropTexture
impl UnwindSafe for BeatDropTexture
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more