phosphor-crt 0.1.0

A real-time plotter of waveforms, imitating oscillscope CRTs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Types that are shared between Rust and WGSL.

#[repr(C)]
#[derive(Debug, Copy, Clone, bytemuck::Pod, bytemuck::Zeroable, PartialOrd, PartialEq)]
pub(crate) struct UniformData {
    pub(crate) transform: [[f32; 4]; 3],
    pub(crate) resolution: [u32; 2],
    pub(crate) beam_radius: f32,
    pub(crate) intensity: f32,
    pub(crate) gamma: f32,
    pub(crate) decay_per_sample: f32,
    pub(crate) num_samples: u32,
    pub(crate) screen_decay: f32,
}