-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
111 lines (94 loc) · 2.78 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[package]
name = "pi_wgpu"
version = "0.1.40"
authors = ["moyy <[email protected]>"]
edition = "2021"
description = "WebGPU implement by single thread in GL-3.3 / GLES-3.0 / WebGL2"
repository = "https://github.com/GaiaWorld/pi_wgpu"
license = "MIT OR Apache-2.0"
keywords = ["pi", "webgpu"]
[features]
default = ["gl"]
# default = ["use_wgpu", "gl"]
webgl = []
webgpu = []
gl = []
single_thread = []
use_wgpu = ["wgpu", "wgpu/glsl"]
[dependencies]
pi_egl = { version = "0.1", registry = "yn" }
pi_share = "0.4"
glow = { package = "pi_glow", version = "0.13", registry = "yn" }
naga = { version = "0.19", features = ["clone", "glsl-in", "glsl-out"] }
wgpu = { version = "0.19", default-features = false, optional = true }
log = "0.4"
bitflags = "2.4"
thiserror = "1.0"
twox-hash = "1.6"
lazy_static = "1.4"
parking_lot = "0.12"
ordered-float = "3.9"
raw-window-handle = "0.6"
codespan-reporting = "0.11"
profiling = { version = "1", default-features = false }
serde = { version = "1.0", optional = true, features = ["derive"] }
pi_time = "0.3"
pi_hash = "0.1"
pi_assets = "0.14"
derive-deref-rs = "0.1"
derive_more = {version = "1.0", features=["debug"]}
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = { version = "0.2", features = ["serde-serialize"] }
web-sys = { version = "0.3", features = [
"HtmlCanvasElement",
"OffscreenCanvas",
"ImageBitmap",
] }
js-sys = "0.3"
# DEV dependencies
# [target.'cfg(target_arch = "wasm32")'.dev-dependencies]
# my_library = { version = "0.1", features = ["wgpu"] }
# wgpu = { version = "0.16", default-features = false, features = ["glsl", "wgc"] }
[dev-dependencies]
ktx = "0.3"
log = "0.4"
env_logger = "0.10"
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
glow = { package = "pi_glow", version = "0.13", registry = "yn" }
winit = { registry = "yn", version = "0.27" }
pollster = "0.3"
naga = { version = "0.19", features = ["clone", "glsl-in", "glsl-out"] }
bytemuck = { version = "1.4", features = ["derive"] }
glam = "0.24"
# [target.'cfg(target_arch = "wasm32")'.dev-dependencies]
web-sys = { version = "0.3", features = [
"HtmlCanvasElement",
"OffscreenCanvas",
"ImageBitmapRenderingContext",
] }
js-sys = "0.3"
wasm-bindgen = { version = "0.2", features = ["serde-serialize"] }
console_error_panic_hook = "0.1"
console_log = "1.0"
getrandom = { version = "0.2", features = ["js"] }
wasm-bindgen-futures = "0.4"
wasm-bindgen-test = "0.3"
[target.'cfg(target_os = "android")'.example]
name = "triangle"
test = true
[[example]]
name = "image"
test = true
[[example]]
name = "test"
test = true
[[example]]
name = "compress_texture"
test = true
[target.'cfg(target_os = "android")'.dependencies]
ndk-glue = "0.7"
[patch.yn]
pi_egl = { path = "../pi_egl" }
winit = { path = "../winit"}
glow = { package = "pi_glow", path = "../pi_glow" }