mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-02-16 08:53:20 +00:00
Add DX12 and Metal backends
This commit is contained in:
parent
53aabad8b4
commit
c8849cfe63
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
/target
|
/target
|
||||||
**/*.rs.bk
|
**/*.rs.bk
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
|
.vscode
|
||||||
|
@ -4,8 +4,9 @@ version = "0.1.0"
|
|||||||
authors = ["Dzmitry Malyshau <kvark@mozilla.com>"]
|
authors = ["Dzmitry Malyshau <kvark@mozilla.com>"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["gfx-backend-vulkan"]
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
gfx-hal = { git = "https://github.com/gfx-rs/gfx" }
|
gfx-hal = { git = "https://github.com/gfx-rs/gfx" }
|
||||||
gfx-backend-vulkan = { git = "https://github.com/gfx-rs/gfx", optional = true }
|
gfx-backend-vulkan = { git = "https://github.com/gfx-rs/gfx", optional = true }
|
||||||
|
gfx-backend-dx12 = { git = "https://github.com/gfx-rs/gfx", optional = true }
|
||||||
|
gfx-backend-metal = { git = "https://github.com/gfx-rs/gfx", optional = true }
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
extern crate gfx_hal as hal;
|
extern crate gfx_hal as hal;
|
||||||
#[cfg(feature = "gfx-backend-vulkan")]
|
#[cfg(feature = "gfx-backend-vulkan")]
|
||||||
extern crate gfx_backend_vulkan as back;
|
extern crate gfx_backend_vulkan as back;
|
||||||
|
#[cfg(feature = "gfx-backend-dx12")]
|
||||||
|
extern crate gfx_backend_dx12 as back;
|
||||||
|
#[cfg(feature = "gfx-backend-metal")]
|
||||||
|
extern crate gfx_backend_metal as back;
|
||||||
|
|
||||||
mod command;
|
mod command;
|
||||||
mod device;
|
mod device;
|
||||||
|
Loading…
Reference in New Issue
Block a user