1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#![allow(dead_code)]

pub mod shader_parser;
pub mod shader_ast;
pub mod shader_registry;
//pub mod env;
pub mod analyse;
pub mod builtin;
pub mod const_eval;
pub mod const_gather;
pub mod dep_analyse;
pub mod ty_check;
pub mod lhs_check;
pub mod swizzle;
pub mod util;
pub mod generate;

#[cfg(any(target_os = "android", target_os = "linux", target_arch = "wasm32"))]
pub mod generate_glsl;
#[cfg(any(target_os = "macos", target_os="ios"))]
pub mod generate_metal;
#[cfg(any(target_os = "windows"))]
pub mod generate_hlsl;

pub use makepad_live_compiler;
pub use makepad_live_compiler::makepad_math;
pub use makepad_live_compiler::makepad_live_tokenizer;
pub use makepad_live_compiler::makepad_derive_live;
pub use makepad_live_compiler::makepad_micro_serde;
pub use makepad_live_tokenizer::makepad_live_id;
pub use makepad_live_id::makepad_error_log;

pub use {
    crate::{
        shader_ast::{
            ShaderTy,
            DrawShaderPtr,
            DrawShaderDef,
            DrawShaderFieldKind,
            DrawShaderFlags,
            DrawShaderConstTable,
            ValuePtr,
        },
        shader_registry::{
            ShaderEnum,
            ShaderRegistry,
            DrawShaderQuery
        }
    }
};

//pub use crate::shaderregistry::DrawShaderInput;