Skip to main content

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
20pub use half::f16;
21
22use tplt::TpltParam;
23
24/// Function call signature.
25#[derive(Clone, Debug, PartialEq)]
26pub struct CallSignature {
27    pub name: String,
28    pub tplt: Option<Vec<TpltParam>>,
29    pub args: Vec<Type>,
30}
31
32/// Shader compilation stage.
33#[derive(Clone, Copy, Debug, PartialEq, Eq)]
34pub enum ShaderStage {
35    /// Shader module creation
36    Const,
37    /// Pipeline creation
38    Override,
39    /// Shader execution
40    Exec,
41}