Skip to content

Commit 9e2e493

Browse files
committed
Remove glam feature specification, let spirv-std do it
1 parent 0982968 commit 9e2e493

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

crates/shader-crate-template/Cargo.toml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,7 @@ crate-type = ["rlib", "cdylib"]
1010
[dependencies]
1111
# TODO: use a simple crate version once v0.10.0 is released
1212
spirv-std = { git = "https://github.com/Rust-GPU/rust-gpu", rev = "86fc48032c4cd4afb74f1d81ae859711d20386a1" }
13-
14-
# Dependencies for GPU code
15-
[target.'cfg(target_arch = "spirv")'.dependencies]
16-
glam = { version = "0.29", default-features = false, features = ["libm"] }
17-
18-
# Dependencies for CPU code
19-
[target.'cfg(not(target_arch = "spirv"))'.dependencies]
20-
glam = { version = "0.29", features = ["std"] }
13+
glam = { version = "0.29", default-features = false }
2114

2215
[package.metadata.rust-gpu.build]
2316
# Where to output the compiled shader. Defaults to where `cargo gpu` is called from.

0 commit comments

Comments
 (0)