wgsl_types/
lib.rs

1#![cfg_attr(docsrs, feature(doc_cfg))]
2#![doc = include_str!("../README.md")]
3
4mod display;
5mod error;
6mod mem;
7
8pub mod builtin;
9pub mod conv;
10pub mod idents;
11pub mod inst;
12pub mod syntax;
13pub mod tplt;
14pub mod ty;
15
16pub use error::Error;
17pub use inst::Instance;
18pub use ty::Type;
19
20use tplt::TpltParam;
21
22/// Function call signature.
23#[derive(Clone, Debug, PartialEq)]
24pub struct CallSignature {
25    pub name: String,
26    pub tplt: Option<Vec<TpltParam>>,
27    pub args: Vec<Type>,
28}
29
30/// Shader compilation stage.
31#[derive(Clone, Copy, Debug, PartialEq, Eq)]
32pub enum ShaderStage {
33    /// Shader module creation
34    Const,
35    /// Pipeline creation
36    Override,
37    /// Shader execution
38    Exec,
39}