molgfx-core 0.3.0

The semantic scene graph: columnar tables, GPU record layouts, the borrowed coordinate seam.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Small stable value encodings shared by manifest record builders.

use crate::VolumeRendering;

pub(super) const fn volume_rendering(value: VolumeRendering) -> &'static str {
    match value {
        VolumeRendering::Direct => "direct",
        VolumeRendering::Isosurface => "isosurface",
        VolumeRendering::Medium => "medium",
        VolumeRendering::Slice => "slice",
        VolumeRendering::LiquidSurface => "liquid_surface",
    }
}