Merge pull request #1 from grovesNL/backends

Add DX12 and Metal backends
This commit is contained in:
Dzmitry Malyshau 2018-09-14 08:54:51 -04:00 committed by GitHub
commit f246d33bfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 3 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
/target
**/*.rs.bk
Cargo.lock
.vscode

View File

@ -4,8 +4,9 @@ version = "0.1.0"
authors = ["Dzmitry Malyshau <kvark@mozilla.com>"]
[features]
default = ["gfx-backend-vulkan"]
[dependencies]
gfx-hal = { git = "https://github.com/gfx-rs/gfx" }
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 }

View File

@ -14,7 +14,7 @@ pub struct AdapterDescriptor {
#[repr(C)]
pub struct Extensions {
anisotropicFiltering: bool,
anisotropic_filtering: bool,
}
#[repr(C)]

View File

@ -1,6 +1,10 @@
extern crate gfx_hal as hal;
#[cfg(feature = "gfx-backend-vulkan")]
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 device;