runmat-plot 0.4.0

GPU-accelerated and static plotting for RunMat with WGPU and Plotters
Documentation
1
2
3
4
5
6
7
8
9
10
use std::sync::Arc;

/// GPU context used by plot elements to build viewport-aware GPU geometry.
///
/// On wasm, some geometry generation is deferred until render-time so we can incorporate the
/// current viewport pixel size (e.g. to convert `LineWidth` pixels → data units).
pub struct GpuPackContext<'a> {
    pub device: &'a Arc<wgpu::Device>,
    pub queue: &'a Arc<wgpu::Queue>,
}