subdiv-kernels 0.1.0

Standalone subdivision kernel crate for Rust and wasm32 workflows
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use thiserror::Error;

/// Error type returned by kernel APIs.
#[derive(Debug, Clone, Error, PartialEq, Eq)]
#[non_exhaustive]
pub enum KernelError {
    /// The mesh topology arrays are inconsistent.
    #[error("invalid topology: {0}")]
    InvalidTopology(&'static str),

    /// A requested feature is not implemented yet.
    #[error("not implemented: {0}")]
    NotImplemented(&'static str),

    /// A GPU (wgpu) operation failed or was misconfigured.
    #[error("gpu error: {0}")]
    Gpu(String),
}