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
14
use thiserror::Error;

#[derive(Error, Debug, PartialEq, Eq, Clone, Hash)]
pub enum CreateUniformError {
    #[error("No WebGL2RenderingContext was provided")]
    NoContext,
    #[error("The associated program_id could no be found")]
    ProgramNotFound,
    #[error("The uniform's location was not found in the program: {uniform_id:?}")]
    UniformLocationNotFound {
        uniform_id: String,
        program_id: String,
    },
}