runmat_plot/core/gpu_pack.rs
1use std::sync::Arc;
2
3/// GPU context used by plot elements to build viewport-aware GPU geometry.
4///
5/// On wasm, some geometry generation is deferred until render-time so we can incorporate the
6/// current viewport pixel size (e.g. to convert `LineWidth` pixels → data units).
7pub struct GpuPackContext<'a> {
8 pub device: &'a Arc<wgpu::Device>,
9 pub queue: &'a Arc<wgpu::Queue>,
10}