slam-viewer 0.1.2

Simple wgpu based SLAM map viewer.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use slam_cv::Number;

pub trait VertexFormat<N>
where
    N: Number,
{
    fn format() -> wgpu::VertexFormat;
}

impl VertexFormat<f32> for nalgebra::Point3<f32> {
    fn format() -> wgpu::VertexFormat {
        wgpu::VertexFormat::Float3
    }
}

pub trait GpuVertex {
    fn weight() -> u64;
}