Make d3d12 build by default if possible
This commit is contained in:
@@ -8,7 +8,7 @@ license = "MIT/Apache-2.0"
|
||||
|
||||
|
||||
[features]
|
||||
default = ["vulkan"]
|
||||
default = ["vulkan", "d3d12"]
|
||||
force-link = ["openxr/linked"]
|
||||
vulkan = ["wgpu-core/vulkan"]
|
||||
d3d12 = ["wgpu-core/dx12", "dep:winapi", "dep:d3d12"]
|
||||
@@ -22,11 +22,9 @@ ash = "0.37.3"
|
||||
bevy = "0.13"
|
||||
futures-lite = "2.0.1"
|
||||
mint = "0.5.9"
|
||||
winapi = { version = "0.3.9", optional = true }
|
||||
wgpu = "0.19"
|
||||
wgpu-core = { version = "0.19" }
|
||||
wgpu-hal = "0.19"
|
||||
d3d12 = { version = "0.19", features = ["libloading"], optional = true }
|
||||
eyre = "0.6.11"
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
@@ -35,6 +33,9 @@ openxr = { git = "https://github.com/Ralith/openxrs", rev = "0177d2d", features
|
||||
"static",
|
||||
"mint",
|
||||
] }
|
||||
winapi = { version = "0.3.9", optional = true }
|
||||
d3d12 = { version = "0.19", features = ["libloading"], optional = true }
|
||||
|
||||
[target.'cfg(all(target_family = "unix", not(target_arch = "wasm32")) )'.dependencies]
|
||||
openxr = { git = "https://github.com/Ralith/openxrs", rev = "0177d2d", features = [
|
||||
"mint",
|
||||
|
||||
Reference in New Issue
Block a user