build: untangle spirv-to-dxil from non-d3d12 paths

This commit is contained in:
chyyran 2023-02-08 03:21:28 -05:00
parent ccc2539e2f
commit 85497e47c1
3 changed files with 5 additions and 5 deletions

4
Cargo.lock generated
View file

@ -1308,9 +1308,9 @@ checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e"
[[package]]
name = "petgraph"
version = "0.6.2"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6d5014253a1331579ce62aa67443b4a658c5e7dd03d4bc6d302b94474888143"
checksum = "4dd7d28ee937e54fe3080c91faa1c3a46c06de6252988a7f4592ba2310ef22a4"
dependencies = [
"fixedbitset",
"indexmap",

View file

@ -30,8 +30,8 @@ naga = { version = "0.11.0", features = ["glsl-in", "spv-in", "spv-out", "glsl-o
rspirv = { version = "0.11.0+1.5.4", optional = true }
[features]
default = ["cross", "dxil"]
default = ["cross"]
unstable-naga = [ "naga", "rspirv" ]
standalone = ["shaderc/build-from-source"]
dxil = ["spirv-to-dxil"]
dxil = ["cross", "spirv-to-dxil"]
cross = [ "spirv_cross", "spirv_cross/glsl", "spirv_cross/hlsl" ]

View file

@ -15,7 +15,7 @@ description = "RetroArch shaders for all."
librashader-common = { path = "../librashader-common", features = ["d3d12"], version = "0.1.0-beta.16" }
librashader-presets = { path = "../librashader-presets", version = "0.1.0-beta.16" }
librashader-preprocess = { path = "../librashader-preprocess", version = "0.1.0-beta.16" }
librashader-reflect = { path = "../librashader-reflect", version = "0.1.0-beta.16", features = ["standalone"] }
librashader-reflect = { path = "../librashader-reflect", version = "0.1.0-beta.16", features = ["dxil", "standalone"] }
librashader-runtime = { path = "../librashader-runtime", version = "0.1.0-beta.16" }
thiserror = "1.0.37"
spirv_cross = { package = "librashader-spirv-cross", version = "0.23" }