-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
57 lines (50 loc) · 1.27 KB
/
Cargo.toml
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
53
54
55
56
57
[package]
name = "transhader"
version = "0.1.1"
edition = "2021"
description = "Transpile shaders on the fly using procedural macros."
authors = ["Mikail Plotzky"]
license = "MIT OR Apache-2.0"
keywords = ["naga", "shaders", "proc-macro", "hlsl", "glsl"]
categories = ["compilers", "graphics", "rendering::data-formats"]
repository = "https://github.com/drafteddev/transhader"
documentation = "https://docs.rs/transhader"
[dependencies]
ron = "0.8.1"
serde = { version = "1.0.197", features = ["derive"] }
naga = "0.19.2"
[features]
default = [
"from-glsl",
"from-spv",
"from-wgsl",
"to-glsl",
"to-hlsl",
"to-msl",
"to-spv",
"to-wgsl",
]
# Allow transpiling from GLSL.
from-glsl = ["naga/glsl-in"]
# Allow transpiling from SPIR-V.
from-spv = ["naga/spv-in"]
# Allow transpiling from WGSL.
from-wgsl = ["naga/wgsl-in"]
# Allow transpiling to GLSL.
to-glsl = ["naga/glsl-out"]
# Allow transpiling to MSL.
to-msl = ["naga/msl-out"]
# Allow transpiling to SPIR-V.
to-spv = ["naga/spv-out"]
# Allow transpiling to WGSL.
to-wgsl = ["naga/wgsl-out"]
# Allow transpiling to HLSL.
to-hlsl = ["naga/hlsl-out"]
[lib]
proc-macro = true
[[example]]
name = "transpile"
path = "examples/transpile.rs"
[[example]]
name = "transpile_file"
path = "examples/transpile_file.rs"