wrend 0.3.6

A WebGL2 rendering library for Rust/Wasm & JS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Error, Debug, PartialEq, Eq, Clone, Hash)]
pub enum CompileShaderError {
    #[error("{shader_id:?}: No canvas or its associated context were supplied")]
    NoContext { shader_id: String },
    #[error("{shader_id:?}: Call to WebGL2RenderingContext returned None")]
    NoShaderReturned { shader_id: String },
    #[error("{shader_id:?}: {error:?}")]
    KnownError { shader_id: String, error: String },
    #[error("{shader_id:?}: An unknown error occurred.")]
    UnknownError { shader_id: String },
}